Skip to content

Commit

Permalink
Merge pull request #15501 from chaochn47/defake_TestTracing
Browse files Browse the repository at this point in the history
deflake TestTracing
  • Loading branch information
ahrtr authored Mar 17, 2023
2 parents 4e0e6bd + f163af2 commit 6cfe4bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/tracing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 6cfe4bc

Please sign in to comment.