Relax wxStopWatch test to make it less likely to fail on buildbot.

Be prepared for sleeping taking more time than we budget for it on a highly
loaded machine such as a buildbot slave.
This commit is contained in:
Vadim Zeitlin
2015-04-12 22:46:46 +02:00
parent 0f17babfd9
commit 02f7f0dd32

View File

@@ -111,7 +111,7 @@ void StopWatchTestCase::Misc()
WX_ASSERT_MESSAGE WX_ASSERT_MESSAGE
( (
("Actual time value is %ld", t), ("Actual time value is %ld", t),
t > 2*sleepTime - tolerance && t < 2*sleepTime + tolerance t > 2*sleepTime - tolerance && t < 3*sleepTime
); );
} }