Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Jul 1, 2024
1 parent 2e9c9f8 commit 0686be2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ func configureReplicator(
Info: targetNode.PeerInfo(),
})
if err == nil {
// wait for the replicator setup to complete
<-sub.Message()
}

Expand All @@ -317,6 +318,7 @@ func deleteReplicator(
Info: targetNode.PeerInfo(),
})
if err == nil {
// wait for the replicator setup to complete
<-sub.Message()
}
require.NoError(s.t, err)
Expand Down Expand Up @@ -405,6 +407,7 @@ func subscribeToCollection(

err = n.AddP2PCollections(s.ctx, schemaRoots)
if err == nil {
// wait for the p2p collection setup to complete
<-sub.Message()
}

Expand Down Expand Up @@ -442,6 +445,7 @@ func unsubscribeToCollection(

err = n.RemoveP2PCollections(s.ctx, schemaRoots)
if err == nil {
// wait for the p2p collection setup to complete
<-sub.Message()
}

Expand Down

0 comments on commit 0686be2

Please sign in to comment.