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.
2 parents b5c6155 + b481fb9 commit 736a991Copy full SHA for 736a991
projects/client/Unit/src/unit/TestConnectionChurnHandleLeak.cs
@@ -84,7 +84,9 @@ protected void PerformLeakTest(ConnectionFactory cf)
84
Thread.Sleep(TimeSpan.FromSeconds(10));
85
me = Process.GetCurrentProcess();
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