Skip to content

Commit bc70825

Browse files
committed
fix: remove minor inconsistencies
1 parent 96436c4 commit bc70825

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testcontainers-dotnet/SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ await kafka.StartAsync();
349349
var 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();
353353
await elasticsearch.StartAsync();
354354
var 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
14671466
using System.Net;
1467+
using System.Threading.Tasks;
14681468
using Microsoft.AspNetCore.Hosting;
14691469
using Microsoft.AspNetCore.Mvc.Testing;
14701470
using 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

Comments
 (0)