Skip to content

Commit 31b65ca

Browse files
committed
!fixup
1 parent b3f6bff commit 31b65ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/matrix-sdk-common/src/cross_process_lock.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,9 +810,12 @@ mod tests {
810810

811811
// Check it's not dirty.
812812
let guard1 = lock1.try_lock_once().await?.expect("lock must be obtained successfully");
813-
assert_matches!(guard1, CrossProcessLockState::Dirty(_));
813+
assert_matches!(guard1, CrossProcessLockState::Clean(_));
814814
assert!(lock1.is_dirty());
815815

816+
// Continue to test with `lock2`, then again with `lock1` to trigger another
817+
// generation.
818+
816819
Ok(())
817820
}
818821
}

0 commit comments

Comments
 (0)