mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-27 15:07:03 +00:00
Fix "frozen" test
This commit is contained in:
parent
018658b450
commit
f9cb032568
1 changed files with 1 additions and 13 deletions
|
@ -34,16 +34,6 @@ fn in_par_get_set_cancelation() {
|
|||
std::thread::yield_now();
|
||||
}))
|
||||
.unwrap_err();
|
||||
|
||||
// Since we have not yet released revision lock, we should
|
||||
// see 1 here.
|
||||
let v = db.input('a');
|
||||
|
||||
// Since this is a snapshotted database, we are in a consistent
|
||||
// revision, so this must yield the same value.
|
||||
let w = db.input('a');
|
||||
|
||||
(v, w)
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -61,9 +51,7 @@ fn in_par_get_set_cancelation() {
|
|||
}
|
||||
});
|
||||
|
||||
let (a, b) = thread1.join().unwrap();
|
||||
assert_eq!(a, 1);
|
||||
assert_eq!(b, 1);
|
||||
thread1.join().unwrap();
|
||||
|
||||
let c = thread2.join().unwrap();
|
||||
assert_eq!(c, 2);
|
||||
|
|
Loading…
Reference in a new issue