fix: make circuit relay listening addresses more forgiving (#604)

* test: dont be strict on nock mocking

* fix: be more forgiving with circuit listening addresses
This commit is contained in:
Jacob Heun
2020-04-14 12:37:52 +02:00
committed by GitHub
parent b57de4ed0c
commit e192eb6508
4 changed files with 9 additions and 25 deletions

View File

@ -149,7 +149,7 @@ describe('Dialing (via relay, TCP)', () => {
// Connect the destination peer and the relay
const tcpAddrs = dstLibp2p.transportManager.getAddrs()
await dstLibp2p.transportManager.listen([multiaddr(`/p2p-circuit${relayAddr}`)])
await dstLibp2p.transportManager.listen([multiaddr(`${relayAddr}/p2p-circuit`)])
expect(dstLibp2p.transportManager.getAddrs()).to.have.deep.members([...tcpAddrs, dialAddr.decapsulate('p2p')])
// Tamper with the our multiaddrs for the circuit message