From 52d757f14a31cbf7bca87dcd4b9177720f414f8c Mon Sep 17 00:00:00 2001 From: Tao He Date: Mon, 5 Apr 2021 22:06:58 +0800 Subject: [PATCH] Make the watcher test more stable on CI. Signed-off-by: Tao He --- tst/WatcherTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tst/WatcherTest.cpp b/tst/WatcherTest.cpp index 616116b..ff541f6 100644 --- a/tst/WatcherTest.cpp +++ b/tst/WatcherTest.cpp @@ -84,6 +84,7 @@ TEST_CASE("create watcher") etcd.set("/test/key", "43"); std::this_thread::sleep_for(std::chrono::seconds(3)); } + std::this_thread::sleep_for(std::chrono::seconds(10)); CHECK(2 == watcher_called); etcd.rmdir("/test", true).error_code(); }