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

Commit

Permalink
use S3_URL for aws_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
neubaner committed Aug 3, 2023
1 parent edceb01 commit b25fbe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sqld/src/test/bottomless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async fn backup_restore() {
bucket_name: BUCKET.to_string(),
max_batch_interval: Duration::from_millis(250),
restore_transaction_page_swap_after: 1, // in this test swap should happen at least once
aws_endpoint: Some(S3_URL.to_string()),
..bottomless::replicator::Options::from_env().unwrap()
}),
db_path: PATH.into(),
Expand Down Expand Up @@ -230,6 +231,7 @@ async fn rollback_restore() {
bucket_name: BUCKET.to_string(),
max_batch_interval: Duration::from_millis(250),
restore_transaction_page_swap_after: 1, // in this test swap should happen at least once
aws_endpoint: Some(S3_URL.to_string()),
..bottomless::replicator::Options::from_env().unwrap()
}),
db_path: PATH.into(),
Expand Down Expand Up @@ -417,7 +419,7 @@ impl S3BucketCleaner {
impl Drop for S3BucketCleaner {
fn drop(&mut self) {
tokio::task::block_in_place(|| {
let _ = tokio::runtime::Handle::current().block_on(Self::cleanup(self.0));
let _ = tokio::runtime::Handle::current().block_on(Self::cleanup(self.0));
});
}
}

0 comments on commit b25fbe9

Please sign in to comment.