Skip to content

Commit e9d71aa

Browse files
committed
Suppress warning in test for deprecated API
1 parent b9cc7f5 commit e9d71aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Seq.Api.Tests/SeqConnectionTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ public void WhenConstructedTheHandlerConfigurationCallbackIsCalled()
99
{
1010
var callCount = 0;
1111

12+
#pragma warning disable CS0618 // Type or member is obsolete
1213
using var _ = new SeqConnection("https://test.example.com", null, handler => {
1314
Assert.NotNull(handler);
1415
++callCount;
1516
});
17+
#pragma warning restore CS0618 // Type or member is obsolete
1618

1719
Assert.Equal(1, callCount);
1820
}

0 commit comments

Comments
 (0)