Skip to content

Commit f163af2

Browse files
committed
deflake TestTracing
Signed-off-by: Chao Chen <[email protected]>
1 parent c6d8b65 commit f163af2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/tracing_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ func TestTracing(t *testing.T) {
7070

7171
select {
7272
case <-etcdSrv.Server.ReadyNotify():
73-
case <-time.After(1 * time.Second):
73+
case <-time.After(5 * time.Second):
74+
// default randomized election timeout is 1 to 2s, single node will fast-forward 900ms
75+
// change the timeout from 1 to 5 seconds to ensure de-flaking this test
7476
t.Fatalf("failed to start embed.Etcd for test")
7577
}
7678

0 commit comments

Comments
 (0)