Skip to content

Commit eb8de3b

Browse files
committed
tests: relax some test latencies
This is to limit intermittent test failures on some hosts. Signed-off-by: alindima <[email protected]>
1 parent f352165 commit eb8de3b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mmds/src/token.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ mod tests {
377377
let time_now = get_time_ms(ClockType::Monotonic);
378378
let expiry = TokenAuthority::compute_expiry(1);
379379
let ttl = expiry - time_now;
380-
// We allow a deviation of 10ms to account for the gap
380+
// We allow a deviation of 20ms to account for the gap
381381
// between the two calls to `get_time_ms()`.
382-
let deviation = 10;
382+
let deviation = 20;
383383
assert!(ttl >= MILLISECONDS_PER_SECOND - deviation && ttl <= MILLISECONDS_PER_SECOND);
384384

385385
let time_now = get_time_ms(ClockType::Monotonic);

tests/framework/defs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
SECCOMP_JSON_DIR = FC_WORKSPACE_DIR / "resources/seccomp"
2727

2828
# Maximum accepted duration of an API call, in milliseconds
29-
MAX_API_CALL_DURATION_MS = 500
29+
MAX_API_CALL_DURATION_MS = 700
3030

3131
# Relative path to the location of the kernel file
3232
MICROVM_KERNEL_RELPATH = 'kernel/'

0 commit comments

Comments
 (0)