Skip to content

Commit be9e79f

Browse files
committed
chore: fix linting
1 parent c9f694c commit be9e79f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/core/listening.node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ describe('Listening', () => {
3636

3737
await libp2p.start()
3838

39-
const addrs = libp2p.peerInfo.multiaddrs.toArray().sort((a, b) => a < b ? -1 : 1)
40-
39+
const addrs = libp2p.peerInfo.multiaddrs.toArray()
40+
4141
// Should get something like:
4242
// /ip4/127.0.0.1/tcp/50866
4343
// /ip4/192.168.1.2/tcp/50866
@@ -48,7 +48,7 @@ describe('Listening', () => {
4848
expect(opts[1].family).to.equal('ipv4')
4949
expect(opts[0].transport).to.equal('tcp')
5050
expect(opts[1].transport).to.equal('tcp')
51-
expect(opts[0].host).to.equal('127.0.0.1')
51+
expect(opts[0].host).to.match(/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/)
5252
expect(opts[1].host).to.match(/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/)
5353
expect(opts[0].port).to.be.gt(0)
5454
expect(opts[1].port).to.be.gt(0)

0 commit comments

Comments
 (0)