Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit b25fbe9

Browse files
committed
use S3_URL for aws_endpoint
1 parent edceb01 commit b25fbe9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqld/src/test/bottomless.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async fn backup_restore() {
4444
bucket_name: BUCKET.to_string(),
4545
max_batch_interval: Duration::from_millis(250),
4646
restore_transaction_page_swap_after: 1, // in this test swap should happen at least once
47+
aws_endpoint: Some(S3_URL.to_string()),
4748
..bottomless::replicator::Options::from_env().unwrap()
4849
}),
4950
db_path: PATH.into(),
@@ -230,6 +231,7 @@ async fn rollback_restore() {
230231
bucket_name: BUCKET.to_string(),
231232
max_batch_interval: Duration::from_millis(250),
232233
restore_transaction_page_swap_after: 1, // in this test swap should happen at least once
234+
aws_endpoint: Some(S3_URL.to_string()),
233235
..bottomless::replicator::Options::from_env().unwrap()
234236
}),
235237
db_path: PATH.into(),
@@ -417,7 +419,7 @@ impl S3BucketCleaner {
417419
impl Drop for S3BucketCleaner {
418420
fn drop(&mut self) {
419421
tokio::task::block_in_place(|| {
420-
let _ = tokio::runtime::Handle::current().block_on(Self::cleanup(self.0));
422+
let _ = tokio::runtime::Handle::current().block_on(Self::cleanup(self.0));
421423
});
422424
}
423425
}

0 commit comments

Comments
 (0)