Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: fix circuit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov committed Nov 8, 2017
1 parent 80896fb commit e5906ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/interop/circuit-relay.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ describe('circuit interop', () => {
it('jsTCP <-> goRelay <-> jsWS', (done) => {
const data = crypto.randomBytes(128)
series([
(cb) => jsTCP.swarm.connect(goRelayAddrs[2], cb),
(cb) => jsWS.swarm.connect(goRelayAddrs[0], cb),
(cb) => jsTCP.swarm.connect(goRelayAddrs[1], cb),
(cb) => setTimeout(cb, 1000),
(cb) => jsWS.swarm.connect(jsTCPAddrs[0], cb)
], (err) => {
Expand All @@ -135,7 +135,7 @@ describe('circuit interop', () => {
const data = crypto.randomBytes(128)
series([
(cb) => goWS.swarm.connect(goRelayAddrs[0], cb),
(cb) => goTCP.swarm.connect(goRelayAddrs[2], cb),
(cb) => goTCP.swarm.connect(goRelayAddrs[1], cb),
(cb) => setTimeout(cb, 1000),
(cb) => goWS.swarm.connect(`/p2p-circuit/ipfs/${multiaddr(goTCPAddrs[0]).getPeerId()}`, cb)
], (err) => {
Expand All @@ -152,7 +152,7 @@ describe('circuit interop', () => {
const data = crypto.randomBytes(128)
series([
(cb) => jsWS.swarm.connect(goRelayAddrs[0], cb),
(cb) => goTCP.swarm.connect(goRelayAddrs[2], cb),
(cb) => goTCP.swarm.connect(goRelayAddrs[1], cb),
(cb) => setTimeout(cb, 1000),
(cb) => goTCP.swarm.connect(`/p2p-circuit/ipfs/${multiaddr(jsWSAddrs[0]).getPeerId()}`, cb)
], (err) => {
Expand Down

0 comments on commit e5906ef

Please sign in to comment.