@ -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")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user