You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
Adding thoughts on tests here for when this is implemented. Feel free to comment with additional thoughts.
Tests
should be able to find another peer
Modules will be responsible for creating the setup needed for discovery. .start() will be called on the module and it is expected that the peer will be discovered before the test times out. Implementing modules should take care to make the discovery happen quickly, to avoid lengthy tests. For example, an interval based discovery, like libp2p-bootstrap should trigger shortly after startup.
should not emit events when stopped
Modules should emit peers infinitely. .start() will be called followed by .stop() with a small delay (100 ms?). Modules will be expected to have emitted discovery events after start and before stop. After stop, any emitted events will fail the test.
Maybe also a test to ensure discovery continues after start, stop, start
daviddias
transferred this issue from libp2p/interface-peer-discovery
Feb 5, 2020
daviddias
changed the title
Add test suite and add it to all implementations
[peer discovery] Add test suite and add it to all implementations
Feb 5, 2020
Currently this repo has no test suite, it needs one. Once that's in place, all current implementations need to have the test suite added to them.
Tests
PeerInfo
. Ref: Dont discover self js-libp2p#356Implementations
Add the test suite to:
The text was updated successfully, but these errors were encountered: