Skip to content

Commit

Permalink
Updated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tnewman committed Apr 1, 2024
1 parent 51e3c16 commit 817e7ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ struct TestClient {
bucket: String,
}

static DOCKER_CLI: OnceLock<testcontainers::clients::Cli> =
OnceLock::new();
static DOCKER_CLI: OnceLock<testcontainers::clients::Cli> = OnceLock::new();

static MINIO: OnceLock<Container<'_, MinIO>> = OnceLock::new();

Expand All @@ -43,12 +42,13 @@ async fn setup() -> TestClient {
tracing::subscriber::set_global_default(subscriber).unwrap();
});

DOCKER_CLI.get_or_init(|| {
testcontainers::clients::Cli::default()
});
DOCKER_CLI.get_or_init(|| testcontainers::clients::Cli::default());

let minio = MINIO.get_or_init(|| {
DOCKER_CLI.get().expect("Docker is initialized").run(testcontainers_modules::minio::MinIO::default())
DOCKER_CLI
.get()
.expect("Docker is initialized")
.run(testcontainers_modules::minio::MinIO::default())
});

let dray_config = get_config(&minio).await;
Expand Down

0 comments on commit 817e7ad

Please sign in to comment.