diff --git a/tests/NATS.Client.Core.Tests/NatsConnectionTest.cs b/tests/NATS.Client.Core.Tests/NatsConnectionTest.cs index 55e8a78b4..b31aeee8b 100644 --- a/tests/NATS.Client.Core.Tests/NatsConnectionTest.cs +++ b/tests/NATS.Client.Core.Tests/NatsConnectionTest.cs @@ -234,7 +234,7 @@ await Retry.Until( [Fact(Timeout = 30000)] public async Task ReconnectClusterTest() { - await using var cluster = new NatsCluster(new NullOutputHelper(), _transportType); + await using var cluster = new NatsCluster(_output, _transportType); await Task.Delay(TimeSpan.FromSeconds(5)); // wait for cluster completely connected. var subject = Guid.NewGuid().ToString(); diff --git a/tests/NATS.Client.TestUtilities/NatsServer.cs b/tests/NATS.Client.TestUtilities/NatsServer.cs index b4837d21f..a93ea71ca 100644 --- a/tests/NATS.Client.TestUtilities/NatsServer.cs +++ b/tests/NATS.Client.TestUtilities/NatsServer.cs @@ -181,7 +181,7 @@ public static bool SupportsTlsFirst() { if (e.Data != null) { - if (Regex.IsMatch(e.Data, @"\[INF\] Server is ready")) + if (Regex.IsMatch(e.Data, @"(?:\[INF\] Server is ready|error parsing)")) { mre.Set(); }