Skip to content

Commit

Permalink
test: Create resources one after another
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Sep 20, 2024
1 parent 57b121b commit 26bd150
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/Testcontainers.Platform.Linux.Tests/ReusableResourceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,18 @@ public async Task InitializeAsync()
.WithReuse(true)
.Build();

await Task.WhenAll(container.StartAsync(), network.CreateAsync(), volume.CreateAsync())
await container.StartAsync()
.ConfigureAwait(false);

await network.CreateAsync()
.ConfigureAwait(false);

await volume.CreateAsync()
.ConfigureAwait(false);

// await Task.WhenAll(container.StartAsync(), network.CreateAsync(), volume.CreateAsync())
// .ConfigureAwait(true);

// TODO:
// We need to take a look at this. It appears that sometimes the CI pipeline fails
// without this timeout. Occasionally, the second iteration does not find a
Expand Down Expand Up @@ -82,8 +91,8 @@ await Task.WhenAll(container.StartAsync(), network.CreateAsync(), volume.CreateA
// [testcontainers.org ...] Docker container 255ee671371c ready
//
// [testcontainers.org ...] Delete Docker container e66f043e1450
await Task.Delay(TimeSpan.FromSeconds(1))
.ConfigureAwait(false);
// await Task.Delay(TimeSpan.FromSeconds(1))
// .ConfigureAwait(false);

_disposables.Add(container);
_disposables.Add(network);
Expand Down

0 comments on commit 26bd150

Please sign in to comment.