File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ describe('multiaddr trim', () => {
20
20
it ( 'can create a test node with an irrelevant multiaddr' , ( done ) => {
21
21
createNode (
22
22
[
23
- '/ip4/0.0.0.0/tcp/0 /wss/p2p-webrtc-direct' ,
24
- '/ip4/0 .0.0.0 /tcp/0'
23
+ '/ip4/0.0.0.0/tcp/999 /wss/p2p-webrtc-direct' ,
24
+ '/ip4/127 .0.0.1 /tcp/0'
25
25
] ,
26
26
( err , _node ) => {
27
27
expect ( err ) . to . not . exist ( )
@@ -37,7 +37,7 @@ describe('multiaddr trim', () => {
37
37
38
38
it ( 'irrelevant multiaddr got trimmed' , ( done ) => {
39
39
expect ( node . peerInfo . multiaddrs . toArray ( ) ) . to . have . length ( 1 )
40
- expect ( node . peerInfo . multiaddrs . toArray ( ) [ 0 ] . toString ( ) ) . to . match ( / ^ \/ i p 4 \/ 0 \. 0 \. 0 \. 0 \/ t c p \/ 0 \/ i p f s \/ \w + / )
40
+ expect ( node . peerInfo . multiaddrs . toArray ( ) [ 0 ] . toString ( ) ) . to . match ( / ^ \/ i p 4 \/ 1 2 7 \. 0 \. 0 \. 1 \/ t c p \/ [ 0 - 9 ] + \/ i p f s \/ \w + $ / )
41
41
done ( )
42
42
} )
43
43
} )
You can’t perform that action at this time.
0 commit comments