Skip to content

Commit 38df313

Browse files
committed
fix: Use different API to detect readiness
1 parent 189d8a9 commit 38df313

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Testcontainers.Pulsar/PulsarBuilder.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,8 @@ private static IReadOnlyDictionary<string, string> InitAuthenticationEnvVars()
137137
private sealed class WaitUntil : IWaitUntil
138138
{
139139
private readonly HttpWaitStrategy _httpWaitStrategy = new HttpWaitStrategy()
140-
.ForPath("/admin/v2/clusters")
141-
.ForPort(PulsarWebServicePort)
142-
.ForResponseMessageMatching(IsClusterHealthyAsync);
140+
.ForPath("/admin/v2/namespaces/public/default")
141+
.ForPort(PulsarWebServicePort);
143142

144143
private readonly bool _authenticationEnabled;
145144

0 commit comments

Comments
 (0)