diff --git a/package.json b/package.json index 03a444c006..4ce6e22aa2 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "async": "^2.6.0", "libp2p-floodsub": "^0.15.0", "libp2p-ping": "~0.8.0", - "libp2p-switch": "~0.39.2", + "libp2p-switch": "libp2p/js-libp2p-switch#feat/pull-mplex", "mafmt": "^6.0.0", "multiaddr": "^5.0.0", "peer-book": "~0.7.0", diff --git a/test/circuit-relay.node.js b/test/circuit-relay.node.js index 9fa45d6480..8b311093ad 100644 --- a/test/circuit-relay.node.js +++ b/test/circuit-relay.node.js @@ -38,7 +38,11 @@ describe('circuit relay', function () { node.start((err) => { expect(err).to.not.exist() - handlerSpies.push(sinon.spy(node.switch.transports[Circuit.tag].listeners[0].hopHandler, 'handle')) + handlerSpies.push(sinon.spy(node + .switch + .transports[Circuit.tag] + .listeners[0] + .hopHandler, 'handle')) cb(node) }) })