Skip to content

Commit 22cd1a0

Browse files
committed
fix clippy complains
1 parent e9f4045 commit 22cd1a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

async-raft/tests/metrics_state_machine_consistency.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async fn metrics_state_machine_consistency() -> Result<()> {
4040
Duration::from_micros(100),
4141
"n0.state -> Leader",
4242
)
43-
.await;
43+
.await?;
4444

4545
tracing::info!("--- add one non-voter");
4646
router.add_non_voter(0, 1).await?;
@@ -60,7 +60,7 @@ async fn metrics_state_machine_consistency() -> Result<()> {
6060
Duration::from_micros(100),
6161
&format!("n{}.last_applied -> {}", node_id, want),
6262
)
63-
.await;
63+
.await?;
6464

6565
let sto = router.get_storage_handle(&node_id).await?;
6666
assert!(sto.get_state_machine().await.client_status.get("foo").is_some());

0 commit comments

Comments
 (0)