Skip to content

Commit

Permalink
Suppress warning in test for deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed Mar 22, 2024
1 parent b9cc7f5 commit e9d71aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Seq.Api.Tests/SeqConnectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ public void WhenConstructedTheHandlerConfigurationCallbackIsCalled()
{
var callCount = 0;

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

Assert.Equal(1, callCount);
}
Expand Down

0 comments on commit e9d71aa

Please sign in to comment.