Merge pull request #15501 from chaochn47/defake_TestTracing

deflake TestTracing
This commit is contained in:
Benjamin Wang
2023-03-18 07:24:02 +08:00
committed by GitHub

View File

@@ -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")
}