@@ -349,7 +349,7 @@ await kafka.StartAsync();
349349var kafkaBootstrapAddress = kafka .GetBootstrapAddress ();
350350
351351// Elasticsearch
352- await using var elasticsearch = new ElasticsearchBuilder (" elasticsearch:8.6.1 " ).Build ();
352+ await using var elasticsearch = new ElasticsearchBuilder (" elasticsearch:8.7.0 " ).Build ();
353353await elasticsearch .StartAsync ();
354354var elasticsearchConnectionString = elasticsearch .GetConnectionString ();
355355```
@@ -421,8 +421,7 @@ public sealed class CustomContainerTests : IAsyncLifetime
421421** Common generic container options** :
422422
423423``` csharp
424- var container = new ContainerBuilder ()
425- .WithImage (" image:tag" )
424+ var container = new ContainerBuilder (" image:tag" )
426425
427426 // Ports
428427 .WithPortBinding (80 , true ) // Random host port
@@ -1465,6 +1464,7 @@ public sealed class KafkaTests : IAsyncLifetime
14651464// - dotnet add package xunit.v3
14661465
14671466using System .Net ;
1467+ using System .Threading .Tasks ;
14681468using Microsoft .AspNetCore .Hosting ;
14691469using Microsoft .AspNetCore .Mvc .Testing ;
14701470using Testcontainers .PostgreSql ;
@@ -1481,7 +1481,7 @@ public sealed class ApiTests : IAsyncLifetime
14811481
14821482 public async ValueTask DisposeAsync ()
14831483 {
1484- await _postgres .DisposeAsync (). AsTask () ;
1484+ await _postgres .DisposeAsync ();
14851485 }
14861486
14871487 public sealed class WebAppTests : WebApplicationFactory <Program >, IClassFixture <ApiTests >
0 commit comments