Skip to content

Commit

Permalink
TLS first test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmk committed Oct 16, 2023
1 parent 251a13c commit 2c8c2d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/NATS.Client.Core.Tests/NatsConnectionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/NATS.Client.TestUtilities/NatsServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 2c8c2d5

Please sign in to comment.