mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-25 18:42:15 +00:00
chore: do not look up external IP during test (#906)
The NAT manager test will throw if the current computer is behind a double NAT as at runtime it won't be possible to map external ports. We don't care about that during the test so configure a fake external IP so the test will still test the shut-down functionality on a computer that is behind a double NAT.
This commit is contained in:
parent
a7128f07ec
commit
c4cae29ef3
@ -268,7 +268,10 @@ describe('Nat Manager (TCP)', () => {
|
|||||||
natManager
|
natManager
|
||||||
} = await createNatManager([
|
} = await createNatManager([
|
||||||
`/ip4/${addr}/tcp/0`
|
`/ip4/${addr}/tcp/0`
|
||||||
])
|
], {
|
||||||
|
// so we don't try to look up the current computer's external address
|
||||||
|
externalIp: '184.12.31.4'
|
||||||
|
})
|
||||||
|
|
||||||
// use the actual nat manager client not the stub
|
// use the actual nat manager client not the stub
|
||||||
delete natManager._client
|
delete natManager._client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user