diff --git a/test/DotNetty.Handlers.Tests/IPSubnetFilterTest.cs b/test/DotNetty.Handlers.Tests/IPSubnetFilterTest.cs index fbdf60926..04c0e7585 100644 --- a/test/DotNetty.Handlers.Tests/IPSubnetFilterTest.cs +++ b/test/DotNetty.Handlers.Tests/IPSubnetFilterTest.cs @@ -96,6 +96,8 @@ public void TestIPFilterRuleHandler() { Assert.Equal(i, output.ReadByte()); } + //waiting finish of ContinueWith for chDeny.ChannelRejected + Thread.Sleep(300); Assert.False(chDeny.Active); Assert.False(chDeny.Open); RuleBasedIPFilter allowHandler = new TestAllowFilter(filter0);