Skip to content

Commit 3d70041

Browse files
committed
test: pull kafka image when missing
1 parent 8e25921 commit 3d70041

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/LinkTracker.Scrapper.Tests/Kafka/KafkaFixture.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
using DotNet.Testcontainers.Images;
12
using Testcontainers.Kafka;
23

34
namespace LinkTracker.Scrapper.Tests.Kafka;
45

56
public sealed class KafkaFixture : IAsyncLifetime
67
{
78
private readonly KafkaContainer _container = new KafkaBuilder("confluentinc/cp-kafka:7.6.1")
9+
.WithImagePullPolicy(PullPolicy.Missing)
810
.Build();
911

1012
public string BootstrapServers => _container.GetBootstrapAddress();

0 commit comments

Comments
 (0)