mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/simulation: Add sleep to prevent connect flakiness in http test
This commit is contained in:
parent
eb0b177f99
commit
724581134f
1 changed files with 1 additions and 0 deletions
|
|
@ -605,6 +605,7 @@ func TestHTTPSnapshot(t *testing.T) {
|
||||||
if err := client.ConnectNode(nodes[0].ID, nodes[1].ID); err != nil {
|
if err := client.ConnectNode(nodes[0].ID, nodes[1].ID); err != nil {
|
||||||
t.Fatalf("error connecting nodes: %s", err)
|
t.Fatalf("error connecting nodes: %s", err)
|
||||||
}
|
}
|
||||||
|
time.Sleep(time.Second)
|
||||||
|
|
||||||
// store some state in the test services
|
// store some state in the test services
|
||||||
states := make([]string, nodeCount)
|
states := make([]string, nodeCount)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue