mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-06 07:52:14 +00:00
# What Trying to run compliance tests from the kad router module. I've tried to port the new swarm API but forgot to add a transport. The tests ended up blowing up instead of failing gracefully. # How to test ```js peerOne = new Peer(Id.create(), [multiaddr('/ip4/127.0.0.1/tcp/8090')]) peerTwo = new Peer(Id.create(), [multiaddr('/ip4/127.0.0.1/tcp/8091')]) swarm = new Swarm(peerZero) swarm.dial(peerTwo, {}, function (err) { console.log(err); }); ``` This just work and display the error.