diff --git a/tests/NATS.Client.JetStream.Tests/NatsJsContextFactoryTest.cs b/tests/NATS.Client.JetStream.Tests/NatsJsContextFactoryTest.cs index 399e6c0b2..b7562bebf 100644 --- a/tests/NATS.Client.JetStream.Tests/NatsJsContextFactoryTest.cs +++ b/tests/NATS.Client.JetStream.Tests/NatsJsContextFactoryTest.cs @@ -82,6 +82,7 @@ public void Create_Context_WithMockConnection_Test() public class MockConnection : INatsConnection { +#pragma warning disable CS0067 public event AsyncEventHandler? ConnectionDisconnected; public event AsyncEventHandler? ConnectionOpened; @@ -89,6 +90,7 @@ public class MockConnection : INatsConnection public event AsyncEventHandler? ReconnectFailed; public event AsyncEventHandler? MessageDropped; +#pragma warning restore CS0067 public INatsServerInfo? ServerInfo { get; } = null;