mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 08:17:22 +00:00
test(uploader): fix flaky timeout test with 5ms tolerance
This commit is contained in:
@@ -128,8 +128,8 @@ describe('remote-token-uploader', () => {
|
||||
|
||||
const elapsedTime = Date.now() - startTime;
|
||||
|
||||
// Verify delay was applied (at least 100ms)
|
||||
expect(elapsedTime).toBeGreaterThanOrEqual(100);
|
||||
// Verify delay was applied (allow 5ms tolerance for system timing variance)
|
||||
expect(elapsedTime).toBeGreaterThanOrEqual(95);
|
||||
expect(response.ok).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user