mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-12-28 15:57:08 +00:00
Add failing test for cycle revalidation
This commit is contained in:
parent
2ae813e9ef
commit
ae8348c4f1
1 changed files with 8 additions and 0 deletions
|
@ -122,6 +122,14 @@ fn inner_cycle() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cycle_revalidate() {
|
||||
let mut db = DatabaseImpl::default();
|
||||
assert!(db.cycle_a().is_err());
|
||||
CycleLeafQuery.in_db_mut(&mut db).invalidate(&());
|
||||
assert!(db.cycle_a().is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parallel_cycle() {
|
||||
let _ = env_logger::try_init();
|
||||
|
|
Loading…
Reference in a new issue