mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-01 01:38:18 +00:00
style(lock): format expired refresh assertion
This commit is contained in:
@@ -464,7 +464,10 @@ mod tests {
|
|||||||
tokio::time::advance(Duration::from_secs(11)).await;
|
tokio::time::advance(Duration::from_secs(11)).await;
|
||||||
|
|
||||||
assert!(
|
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"
|
"an expired guard must not be refreshed"
|
||||||
);
|
);
|
||||||
assert!(
|
assert!(
|
||||||
|
|||||||
Reference in New Issue
Block a user