From a52b6279d62f6bb082f11a6daa48088a401f5083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=82=8E=E6=B3=BC?= Date: Wed, 8 Nov 2023 14:55:38 +0800 Subject: [PATCH] Chore: increase timeout for example application. It tends to timeout in a CI --- examples/raft-kv-rocksdb/tests/cluster/test_cluster.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/raft-kv-rocksdb/tests/cluster/test_cluster.rs b/examples/raft-kv-rocksdb/tests/cluster/test_cluster.rs index 406d18229..0ee552ba2 100644 --- a/examples/raft-kv-rocksdb/tests/cluster/test_cluster.rs +++ b/examples/raft-kv-rocksdb/tests/cluster/test_cluster.rs @@ -93,7 +93,7 @@ async fn test_cluster() -> Result<(), Box> { }); // Wait for server to start up. - async_std::task::sleep(Duration::from_millis(500)).await; + async_std::task::sleep(Duration::from_millis(1_000)).await; // --- Create a client to the first node, as a control handle to the cluster. @@ -172,7 +172,7 @@ async fn test_cluster() -> Result<(), Box> { // --- Wait for a while to let the replication get done. - async_std::task::sleep(Duration::from_millis(200)).await; + async_std::task::sleep(Duration::from_millis(500)).await; // --- Read it on every node. @@ -200,7 +200,7 @@ async fn test_cluster() -> Result<(), Box> { }) .await?; - async_std::task::sleep(Duration::from_millis(200)).await; + async_std::task::sleep(Duration::from_millis(500)).await; // --- Read it on every node.