mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
submitConcurrentWatch use sleep 3s to wait for all the watch connections ready. When the number of connections increases, like 1000, the 3s is not enough and the test case becomes flaky. In this commit, spawn curl process and check the ouput line with `created":true}}` to make sure that the connection has been initialized and ready to receive the events. It is reliable to test the following range request. Signed-off-by: Wei Fu <fuweid89@gmail.com>