Skip to content

Commit a59111f

Browse files
Merge branch 'stable'
2 parents dbc6c8c + ce39368 commit a59111f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/client/Unit/src/unit/TestConnectionChurnHandleLeak.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ protected void PerformLeakTest(ConnectionFactory cf)
7979
var conn = cf.CreateConnection();
8080
conn.Close();
8181
}
82+
GC.Collect();
83+
GC.WaitForPendingFinalizers();
8284
Thread.Sleep(TimeSpan.FromSeconds(10));
8385
me = Process.GetCurrentProcess();
8486
Console.WriteLine("{0} handles after the test...", me.HandleCount);

0 commit comments

Comments
 (0)