From f163af2bc83930064dcf96d7791a2683c400be99 Mon Sep 17 00:00:00 2001 From: Chao Chen Date: Fri, 17 Mar 2023 14:39:18 -0700 Subject: [PATCH] deflake TestTracing Signed-off-by: Chao Chen --- tests/integration/tracing_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") }