Skip to content

Commit c20da57

Browse files
author
Marek Majkowski
committed
Added some gc - forcing hacks.
1 parent dee645e commit c20da57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ private long measureMemory(ConnectionFactory connFactory, int reconnectCount)
8888
{
8989
}
9090
}
91+
GC.Collect();
92+
GC.WaitForPendingFinalizers();
9193
return GC.GetTotalMemory(false);
9294
}
9395
}

0 commit comments

Comments
 (0)