Skip to content

Commit 2098f49

Browse files
test(csharp): wait for HTTP readiness in fixture (#3024)
1 parent 484f98a commit 2098f49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

foreign/csharp/Iggy_SDK.Tests.Integration/Fixtures/IggyServerFixture.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ public IggyServerFixture()
7272
var builder = new ContainerBuilder(DockerImage)
7373
.WithPortBinding(3000, true)
7474
.WithPortBinding(8090, true)
75-
.WithWaitStrategy(Wait.ForUnixContainer().UntilInternalTcpPortIsAvailable(8090))
75+
.WithWaitStrategy(Wait.ForUnixContainer()
76+
.UntilInternalTcpPortIsAvailable(8090)
77+
.UntilHttpRequestIsSucceeded(request => request
78+
.ForPort(3000)
79+
.ForPath("/ping")))
7680
.WithName(_containerId)
7781
.WithPrivileged(true)
7882
.WithCleanUp(true);

0 commit comments

Comments
 (0)