Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
be037f73
Commit
be037f73
authored
Jul 26, 2019
by
Vinicius Jarina
Browse files
Fixed flaky test.
parent
0c8c722b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/src/LuaTests.cs
View file @
be037f73
...
...
@@ -2384,11 +2384,12 @@ namespace NLuaTest
void
PleaseRunFinalizers
()
{
for
(
int
i
=
0
;
i
<
5
;
i
++)
for
(
int
i
=
0
;
i
<
20
;
i
++)
{
GC
.
Collect
();
GC
.
WaitForPendingFinalizers
();
Thread
.
Sleep
(
0
);
Thread
.
Yield
();
Thread
.
Sleep
(
1
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment