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 e93015a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func TestGossipSubDiscoveryAfterBootstrap(t *testing.T) {
time.Sleep(time.Second * 1)

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 e93015a

Please sign in to comment.