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 was archived by the owner on Mar 11, 2020. It is now read-only.
Similar to what we do in other interface- modules, let's have a batch of tests for this.
The best way is to have a setup method that once called, returns a connection pair that is linked, on top of the transport, so:
var common = {
setup: function (t, cb) {
// create two sockets that are linked of X transport
cb(null, socketsPair)
},
teardown: function (t, cb) {
// destroy both sockets
cb()
}
}
tests(tape, common)
This way we can test any transport. We can repurpose a lot of the tests that exist in libp2p-tcp