Commit be037f73 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed flaky test.

parent 0c8c722b
...@@ -2384,11 +2384,12 @@ namespace NLuaTest ...@@ -2384,11 +2384,12 @@ namespace NLuaTest
void PleaseRunFinalizers() void PleaseRunFinalizers()
{ {
for (int i = 0; i < 5; i++) for (int i = 0; i < 20; i++)
{ {
GC.Collect(); GC.Collect();
GC.WaitForPendingFinalizers(); GC.WaitForPendingFinalizers();
Thread.Sleep(0); Thread.Yield();
Thread.Sleep(1);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment