mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-26 14:46:57 +00:00
extend cancellation test
This commit is contained in:
parent
b3c7ec9f0d
commit
da3be98295
1 changed files with 6 additions and 1 deletions
|
@ -104,7 +104,8 @@ fn no_back_dating_in_cancellation() {
|
||||||
});
|
});
|
||||||
|
|
||||||
db.wait_for(1);
|
db.wait_for(1);
|
||||||
// Set unrelated input to bumpision rev
|
|
||||||
|
// Set unrelated input to bump revision
|
||||||
db.query_mut(Input).set('b', 2);
|
db.query_mut(Input).set('b', 2);
|
||||||
|
|
||||||
// Here we should recompuet the whole chain again, clearing the cancellation
|
// Here we should recompuet the whole chain again, clearing the cancellation
|
||||||
|
@ -112,4 +113,8 @@ fn no_back_dating_in_cancellation() {
|
||||||
assert_eq!(db.sum3("a"), 1);
|
assert_eq!(db.sum3("a"), 1);
|
||||||
|
|
||||||
assert_eq!(thread1.join().unwrap(), std::usize::MAX);
|
assert_eq!(thread1.join().unwrap(), std::usize::MAX);
|
||||||
|
|
||||||
|
db.query_mut(Input).set('a', 3);
|
||||||
|
db.query_mut(Input).set('a', 4);
|
||||||
|
assert_eq!(db.sum3("ab"), 6);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue