Skip to content

Commit afb1897

Browse files
committed
Chore: extend sleep time for rafk-kv-rocksdb example
1 parent 90db18c commit afb1897

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/raft-kv-rocksdb/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ where
124124
management::rest(&mut app);
125125
api::rest(&mut app);
126126

127-
app.listen(http_addr).await?;
127+
app.listen(http_addr.clone()).await?;
128+
tracing::info!("App Server listening on: {}", http_addr);
128129
_ = handle.await;
129130
Ok(())
130131
}

examples/raft-kv-rocksdb/tests/cluster/test_cluster.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async fn test_cluster() -> Result<(), Box<dyn std::error::Error>> {
9696
});
9797

9898
// Wait for server to start up.
99-
tokio::time::sleep(Duration::from_millis(1_000)).await;
99+
tokio::time::sleep(Duration::from_millis(3_000)).await;
100100

101101
// --- Create a client to the first node, as a control handle to the cluster.
102102

0 commit comments

Comments
 (0)