Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Sep 29, 2024
1 parent e5482e6 commit c08a5c6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ rand = "0.8"
mockito = "1.0.2"
test-case = "3.0.0"
reqwest = { version = "0.12", features = ["blocking", "json"] }
tower = { version = "0.5.1", features = ["util"] }
aws-smithy-types = "1.0.1"
aws-smithy-runtime = {version = "1.0.1", features = ["client", "test-util"]}
aws-smithy-http = "0.60.0"
Expand Down
22 changes: 11 additions & 11 deletions src/web/sitemap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,17 @@ mod tests {

let app = env.web_app().await;

// let response = app
// .oneshot(
// Request::builder()
// .uri("/sitemap.xml")
// .body(Body::empty())
// .unwrap(),
// )
// .await
// .unwrap();

// assert_eq!(response.status(), StatusCode::OK);
let response = app
.oneshot(
Request::builder()
.uri("/sitemap.xml")
.body(Body::empty())
.unwrap(),
)
.await
.unwrap();

assert_eq!(response.status(), StatusCode::OK);
Ok(())
})
}
Expand Down

0 comments on commit c08a5c6

Please sign in to comment.