aboutsummaryrefslogtreecommitdiff
path: root/src/garage/tests
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2023-06-25 21:45:53 +0100
committerJonathan Davies <jpds@protonmail.com>2023-06-26 18:03:43 +0100
commita6da7e588f438b6aa491554eb426242730015d63 (patch)
treeebd66424eedc4bfcbb5da75fcefae12d3d865788 /src/garage/tests
parent7f8bf2d801c55e15b5056ae08cd443325f7989b8 (diff)
downloadgarage-a6da7e588f438b6aa491554eb426242730015d63.tar.gz
garage-a6da7e588f438b6aa491554eb426242730015d63.zip
tests/bucket.rs: Adjusted as previously used function is now private.
Diffstat (limited to 'src/garage/tests')
-rw-r--r--src/garage/tests/bucket.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/garage/tests/bucket.rs b/src/garage/tests/bucket.rs
index 83487bf8..2dda7e6f 100644
--- a/src/garage/tests/bucket.rs
+++ b/src/garage/tests/bucket.rs
@@ -1,7 +1,6 @@
use crate::common;
use crate::common::ext::CommandExt;
use aws_sdk_s3::operation::delete_bucket::DeleteBucketOutput;
-use aws_sdk_s3::types::BucketLocationConstraint;
#[tokio::test]
async fn test_bucket_all() {
@@ -63,10 +62,7 @@ async fn test_bucket_all() {
.await
.unwrap();
- match r.location_constraint.unwrap() {
- BucketLocationConstraint::Unknown(v) if v.as_str() == "garage-integ-test" => (),
- _ => unreachable!("wrong region"),
- }
+ assert_eq!(r.location_constraint.unwrap().as_str(), "garage-integ-test");
}
{
// (Stub) check GetVersioning