-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The tests of this module are currently failing but they don't fail the build because the error that should fail it is thrown [out of the flow control](https://github.com/ChainSafe/gossipsub-js/blob/master/test/floodsub.spec.js#L21) of the tests. An [UnhandledPromiseRejectionWarning](https://travis-ci.com/ChainSafe/gossipsub-js/jobs/278427804#L270) is thrown. This PR: 1. Passes an `error` object to `done` if the error condition is hit 2. Fixes a bug where a message was being sent back to the sender and then emitted by the sender even though `emitSelf` was false
- Loading branch information
1 parent
71cb905
commit 519f868
Showing
2 changed files
with
27 additions
and
15 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