mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 04:00:30 +00:00
Give up on ComputerThreadTest being accurate
It's just too timing dependent right now. I'd like to fix this in the future, but doing so is hard.
This commit is contained in:
parent
5d833ac634
commit
cb9731306c
@ -85,7 +85,7 @@ public class ComputerThreadTest
|
||||
assertEquals( budget, TimeUnit.MILLISECONDS.toNanos( 25 ), "Budget should be 25ms" );
|
||||
|
||||
long delay = ConcurrentHelpers.waitUntil( timeout::isPaused );
|
||||
assertThat( "Paused within 25ms", delay * 1e-9, closeTo( 0.03, 0.02 ) );
|
||||
assertThat( "Paused within 25ms", delay * 1e-9, closeTo( 0.025, 0.025 ) );
|
||||
|
||||
computer.shutdown();
|
||||
return MachineResult.OK;
|
||||
|
Loading…
Reference in New Issue
Block a user