deflake TestTracing

Signed-off-by: Chao Chen <chaochn@amazon.com>
This commit is contained in:
Chao Chen 2023-03-17 14:39:18 -07:00
parent c6d8b65ea7
commit f163af2bc8

View File

@ -70,7 +70,9 @@ func TestTracing(t *testing.T) {
select {
case <-etcdSrv.Server.ReadyNotify():
case <-time.After(1 * time.Second):
case <-time.After(5 * time.Second):
// default randomized election timeout is 1 to 2s, single node will fast-forward 900ms
// change the timeout from 1 to 5 seconds to ensure de-flaking this test
t.Fatalf("failed to start embed.Etcd for test")
}