Skip to content

Commit

Permalink
TestGossipSubDiscoveryAfterBootstrap thread safety
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Jun 11, 2019
1 parent 895db49 commit d06b14e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ func TestGossipSubDiscoveryAfterBootstrap(t *testing.T) {
}

// Wait for network to finish forming then join the partitions via discovery
time.Sleep(time.Second * 1)
time.Sleep(time.Second * 2)

for _, ps := range psubs {
pn := len(ps.peers)
pn := len(ps.ListPeers("foobar"))
if pn != partitionSize-1 {
t.Fatal("partitions not properly formed")
}
Expand All @@ -246,7 +246,7 @@ func TestGossipSubDiscoveryAfterBootstrap(t *testing.T) {

// verify the network is fully connected
for _, ps := range psubs {
pn := len(ps.peers)
pn := len(ps.ListPeers("foobar"))
if pn != numHosts-1 {
t.Fatal("network not fully connected")
}
Expand Down

0 comments on commit d06b14e

Please sign in to comment.