This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because of libp2p/go-libp2p-pubsub#331 we have to wait for a the gossipsub peer to become grafted before sending messages we expect to be recieved. There's no way to tell from the API which peers are grafted so we just have to add an abitrary wait and hope it happens during that time window. Also refactors the pubsub tests to remove duplicated code.
- Loading branch information
1 parent
ddbda73
commit 314141e
Showing
2 changed files
with
65 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters