diff --git a/tests/integration/tracing_test.go b/tests/integration/tracing_test.go index 819d08ec6..744028322 100644 --- a/tests/integration/tracing_test.go +++ b/tests/integration/tracing_test.go @@ -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") }