Make the watcher test more stable on CI.

Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
Tao He 2021-04-05 22:06:58 +08:00
parent 62a846d798
commit 52d757f14a
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}