We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce39368 commit b481fb9Copy full SHA for b481fb9
projects/client/Unit/src/unit/TestConnectionChurnHandleLeak.cs
@@ -84,7 +84,9 @@ protected void PerformLeakTest(ConnectionFactory cf)
84
GC.WaitForPendingFinalizers();
85
Thread.Sleep(TimeSpan.FromSeconds(10));
86
Console.WriteLine("{0} handles after the test...", me.HandleCount);
87
- Assert.That(me.HandleCount, Is.LessThanOrEqualTo(n));
+ // allow for a 20% margin of error, as GC behaviour and native handle
88
+ // release is difficult to predict
89
+ Assert.That(me.HandleCount, Is.LessThanOrEqualTo(n + 200));
90
}
91
92
0 commit comments