Unverified Commit fd0034ec authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Fix s3 tests (#3257)

## Motivation and Context
Fix issue where S3 tests asserted on entire URI.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 1061a3b0
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -171,10 +171,10 @@ async fn behavior_mv_from_aws_config() {
        .send()
        .await
        .expect_err("it should fail to send a request because there is no HTTP client");
    assert_eq!(
        req.expect_request().uri(),
        "https://s3.us-west-2.amazonaws.com/"
    );
    assert!(req
        .expect_request()
        .uri()
        .starts_with("https://s3.us-west-2.amazonaws.com/"));
}

#[tokio::test]
@@ -199,8 +199,8 @@ async fn behavior_mv_from_client_construction() {
        .send()
        .await
        .expect_err("it should fail to send a request because there is no HTTP client"));
    assert_eq!(
        req.expect_request().uri(),
        "https://s3.us-west-2.amazonaws.com/"
    );
    assert!(req
        .expect_request()
        .uri()
        .starts_with("https://s3.us-west-2.amazonaws.com/"));
}