Fix stale worker fence test expectation: clock before deadline is allowed, at deadline denied
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -2842,7 +2842,8 @@ mod tests {
|
|||||||
fence.helper_generation.store(1, Ordering::SeqCst);
|
fence.helper_generation.store(1, Ordering::SeqCst);
|
||||||
assert!(fence.allows_identity(1, true, &Clock(now)));
|
assert!(fence.allows_identity(1, true, &Clock(now)));
|
||||||
assert!(!fence.allows(2, &Clock(now)));
|
assert!(!fence.allows(2, &Clock(now)));
|
||||||
assert!(!fence.allows(1, &Clock(now + chrono::Duration::seconds(1))));
|
assert!(fence.allows(1, &Clock(now + chrono::Duration::seconds(1))));
|
||||||
|
assert!(!fence.allows(1, &Clock(now + chrono::Duration::seconds(3))));
|
||||||
fence.close();
|
fence.close();
|
||||||
assert!(!fence.allows_identity(1, true, &Clock(now)));
|
assert!(!fence.allows_identity(1, true, &Clock(now)));
|
||||||
assert!(!fence.allows(1, &Clock(now)));
|
assert!(!fence.allows(1, &Clock(now)));
|
||||||
|
|||||||
Reference in New Issue
Block a user