style(lock): format expired refresh assertion

This commit is contained in:
马登山
2026-08-18 10:04:46 +08:00
parent 8025951ca7
commit 1113a1fca3
+4 -1
View File
@@ -464,7 +464,10 @@ mod tests {
tokio::time::advance(Duration::from_secs(11)).await;
assert!(
!client.refresh(&lock_id).await.expect("expired refresh should return a result"),
!client
.refresh(&lock_id)
.await
.expect("expired refresh should return a result"),
"an expired guard must not be refreshed"
);
assert!(