소스 검색

Fixed Assert to reference local variables instead of constant values

Thomas Nind 3 년 전
부모
커밋
550766dfca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 			// 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
-			Assert.True (delegatesRun >= 100 * 100 * 2);
+			Assert.True (delegatesRun >= numberOfThreads * numberOfTimeoutsPerThread * 2);
 		}
 	}
 }