Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

chore: add gossipsub grafting delay #116

Closed
wants to merge 3 commits into from

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented May 29, 2020

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 received. There's no way to tell from the API which peers are grafted so we just have to add an arbitrary wait and hope it happens during that time window.

Also refactors the pubsub tests to remove duplicated code and the ipns-pubsub tests to use named variables instead of array indices for readability.

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 and the
ipns-pubsub tests to use named variables instead of array indices for
readability.
@achingbrain
Copy link
Member Author

This doesn't seem to fix the problem after all.

@achingbrain achingbrain deleted the fix/wait-for-longer-in-ci branch May 29, 2020 10:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant