mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 12:14:19 +00:00
test(uploader): fix flaky timeout test with 5ms tolerance
This commit is contained in:
1 parent
7f83a7d435
commit
36c5605323
1 file changed
+2
-2
@@ -128,8 +128,8 @@ describe('remote-token-uploader', () => {
|
|||||||
|
|
||||||
const elapsedTime = Date.now() - startTime;
|
const elapsedTime = Date.now() - startTime;
|
||||||
|
|
||||||
// Verify delay was applied (at least 100ms)
|
// Verify delay was applied (allow 5ms tolerance for system timing variance)
|
||||||
expect(elapsedTime).toBeGreaterThanOrEqual(100);
|
expect(elapsedTime).toBeGreaterThanOrEqual(95);
|
||||||
expect(response.ok).toBe(true);
|
expect(response.ok).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user