Skip to content

Commit 144eb00

Browse files
committed
Relax test timing in VerifySubmitCallbackWithWait
1 parent eab8695 commit 144eb00

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Tests/UnitTests/Tests/TaskQueueTests.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,10 @@ DEFINE_TEST_CLASS(TaskQueueTests)
457457
uint64_t call2Ticks = result.Times[1] - baseTicks;
458458
uint64_t call3Ticks = result.Times[2] - baseTicks;
459459

460-
// Call 1 at index 0 should have a tick count > 1000 and < 1050 (shouldn't take 50ms)
461-
VERIFY_IS_TRUE(call1Ticks >= 1000 && call1Ticks < 1050);
462-
VERIFY_IS_TRUE(call2Ticks < 50);
463-
VERIFY_IS_TRUE(call3Ticks >= 500 && call3Ticks < 550);
460+
// Call 1 at index 0 should have a tick count > 1000 and < 1100 (100ms tolerance for debugger overhead)
461+
VERIFY_IS_TRUE(call1Ticks >= 1000 && call1Ticks < 1100);
462+
VERIFY_IS_TRUE(call2Ticks < 100);
463+
VERIFY_IS_TRUE(call3Ticks >= 500 && call3Ticks < 600);
464464
}
465465
}
466466

0 commit comments

Comments
 (0)