test(batch25): port gateway connect and tls baseline tests
This commit is contained in:
@@ -625,6 +625,18 @@ public sealed class NatsServerTests
|
||||
server.IsLameDuckMode().ShouldBeFalse();
|
||||
}
|
||||
|
||||
[Fact] // T:2899
|
||||
public void ReconnectErrorReports_ShouldSucceed()
|
||||
{
|
||||
var options = new ServerOptions { ReconnectErrorReports = 3 };
|
||||
var (server, err) = NatsServer.NewServer(options);
|
||||
err.ShouldBeNull();
|
||||
server.ShouldNotBeNull();
|
||||
|
||||
server!.GetOpts().ReconnectErrorReports.ShouldBe(3);
|
||||
ServerConstants.DefaultReconnectErrorReports.ShouldBeGreaterThan(0);
|
||||
}
|
||||
|
||||
private sealed class NatsServerCaptureLogger : INatsLogger
|
||||
{
|
||||
public List<string> Warnings { get; } = [];
|
||||
|
||||
Reference in New Issue
Block a user