Make the watcher test more stable on CI.
Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
parent
62a846d798
commit
52d757f14a
|
|
@ -84,6 +84,7 @@ TEST_CASE("create watcher")
|
||||||
etcd.set("/test/key", "43");
|
etcd.set("/test/key", "43");
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(3));
|
std::this_thread::sleep_for(std::chrono::seconds(3));
|
||||||
}
|
}
|
||||||
|
std::this_thread::sleep_for(std::chrono::seconds(10));
|
||||||
CHECK(2 == watcher_called);
|
CHECK(2 == watcher_called);
|
||||||
etcd.rmdir("/test", true).error_code();
|
etcd.rmdir("/test", true).error_code();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue