From 724581134f80b54109f37c87908e8908771fe2d7 Mon Sep 17 00:00:00 2001 From: lash Date: Sun, 28 Oct 2018 10:17:06 +0100 Subject: [PATCH] p2p/simulation: Add sleep to prevent connect flakiness in http test --- p2p/simulations/http_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/simulations/http_test.go b/p2p/simulations/http_test.go index 7bdbad1b53..da43476431 100644 --- a/p2p/simulations/http_test.go +++ b/p2p/simulations/http_test.go @@ -605,6 +605,7 @@ func TestHTTPSnapshot(t *testing.T) { if err := client.ConnectNode(nodes[0].ID, nodes[1].ID); err != nil { t.Fatalf("error connecting nodes: %s", err) } + time.Sleep(time.Second) // store some state in the test services states := make([]string, nodeCount)