Browse Source

Fixed Assert to reference local variables instead of constant values

Thomas Nind 3 years ago
parent
commit
550766dfca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UnitTests/ApplicationTests.cs

+ 1 - 1
UnitTests/ApplicationTests.cs

@@ -1333,7 +1333,7 @@ namespace Terminal.Gui.Core {
 			// a lot but all those timeout delegates could end up going slowly on a slow machine perhaps
 			// a lot but all those timeout delegates could end up going slowly on a slow machine perhaps
 			// so the final number of delegatesRun might vary by computer.  So for this assert we say
 			// so the final number of delegatesRun might vary by computer.  So for this assert we say
 			// that it should have run at least 2 seconds worth of delegates
 			// that it should have run at least 2 seconds worth of delegates
-			Assert.True (delegatesRun >= 100 * 100 * 2);
+			Assert.True (delegatesRun >= numberOfThreads * numberOfTimeoutsPerThread * 2);
 		}
 		}
 	}
 	}
 }
 }