We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3f6bff commit 31b65caCopy full SHA for 31b65ca
crates/matrix-sdk-common/src/cross_process_lock.rs
@@ -810,9 +810,12 @@ mod tests {
810
811
// Check it's not dirty.
812
let guard1 = lock1.try_lock_once().await?.expect("lock must be obtained successfully");
813
- assert_matches!(guard1, CrossProcessLockState::Dirty(_));
+ assert_matches!(guard1, CrossProcessLockState::Clean(_));
814
assert!(lock1.is_dirty());
815
816
+ // Continue to test with `lock2`, then again with `lock1` to trigger another
817
+ // generation.
818
+
819
Ok(())
820
}
821
0 commit comments