From fc00bc223f92dc1f671b70ad08e6222e452e9110 Mon Sep 17 00:00:00 2001 From: Charlie Kindel Date: Tue, 7 Jul 2020 15:25:57 -0700 Subject: [PATCH] changed timout tolerance to 100ms - tests failed in CI/CD --- UnitTests/MainLoopTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UnitTests/MainLoopTests.cs b/UnitTests/MainLoopTests.cs index c2802e1c2..78a868600 100644 --- a/UnitTests/MainLoopTests.cs +++ b/UnitTests/MainLoopTests.cs @@ -289,9 +289,9 @@ namespace Terminal.Gui { var token = ml.AddTimeout (ms, callback); watch.Start (); ml.Run (); - // +/- 10ms should be good enuf + // +/- 100ms should be good enuf // https://github.com/xunit/assert.xunit/pull/25 - Assert.Equal (ms * callbackCount, watch.Elapsed, new MillisecondTolerance (10)); + Assert.Equal (ms * callbackCount, watch.Elapsed, new MillisecondTolerance (100)); ml.RemoveTimeout (token); Assert.Equal (1, callbackCount); @@ -317,9 +317,9 @@ namespace Terminal.Gui { var token = ml.AddTimeout (ms, callback); watch.Start (); ml.Run (); - // +/- 10ms should be good enuf + // +/- 100ms should be good enuf // https://github.com/xunit/assert.xunit/pull/25 - Assert.Equal (ms * callbackCount, watch.Elapsed, new MillisecondTolerance (10)); + Assert.Equal (ms * callbackCount, watch.Elapsed, new MillisecondTolerance (100)); ml.RemoveTimeout (token); Assert.Equal (2, callbackCount);