Skip to content

Commit

Permalink
Fixes #2017. Sometimes I get fails with the TestAddManyTimeouts unit …
Browse files Browse the repository at this point in the history
…test. (#2018)

* Fixes #2017. Sometimes I get fails with the TestAddManyTimeouts unit test.

* Fixes #2013. Starting having MainLoopTests.InvokeLeakTest failure.
  • Loading branch information
BDisp authored Sep 16, 2022
1 parent 7ce2109 commit 0f9abea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UnitTests/ApplicationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ public void TestAddManyTimeouts ()
var myi = i;

Task.Run (() => {
Task.Delay (100).Wait ();
Thread.Sleep (100);
// each thread registers lots of 1s timeouts
for (int j = 0; j < numberOfTimeoutsPerThread; j++) {
Expand All @@ -1318,7 +1318,7 @@ public void TestAddManyTimeouts ()
if (myi == 0) {
// let the timeouts run for a bit
Task.Delay (5000).Wait ();
Thread.Sleep (5000);
// then tell the application to quit
Application.MainLoop.Invoke (() => Application.RequestStop ());
Expand Down

0 comments on commit 0f9abea

Please sign in to comment.