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

Commit

Permalink
chore: update pnet package version
Browse files Browse the repository at this point in the history
test: add skipped test back in and update it
  • Loading branch information
jacobheun committed Jul 19, 2018
1 parent 5d17831 commit 21720d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -43,7 +43,7 @@
"dirty-chai": "^2.0.1",
"gulp": "^3.9.1",
"libp2p-mplex": "~0.7.0",
"libp2p-pnet": "github:libp2p/js-libp2p-pnet#feat/initial",
"libp2p-pnet": "~0.1.0",
"libp2p-secio": "~0.10.0",
"libp2p-spdy": "~0.12.1",
"libp2p-tcp": "~0.12.0",
Expand Down
12 changes: 7 additions & 5 deletions test/pnet.node.js
Expand Up @@ -142,12 +142,14 @@ describe('Private Network', function () {
* Currently this test will time out instead of returning an error properly. This is the same issue
* in ipfs/interop, https://github.com/ipfs/interop/pull/24/commits/179978996ecaef39e78384091aa9669dcdb94cc0
*/
it.skip('should fail to talk to a switch on a different private network', function (done) {
this.timeout(30e3)
switchD.dial(switchA._peerInfo, (err, conn) => {
it('should fail to talk to a switch on a different private network', function (done) {
switchD.dial(switchA._peerInfo, (err) => {
expect(err).to.exist()
expect(conn).to.not.exist()
expect(Object.keys(switchD.muxedConns).length).to.equal(0)
})

// A successful connection will return in well under 2 seconds
setTimeout(() => {
done()
}, 2000)
})
})

0 comments on commit 21720d7

Please sign in to comment.