Skip to content

Commit 9eb3df5

Browse files
committed
Connection test should support IPv6
1 parent 3d3263e commit 9eb3df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/connection.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ test('Should show local/remote socket address in case of ECONNRESET', t => {
11011101
method: 'GET'
11021102
}, (err, res) => {
11031103
t.ok(err instanceof ConnectionError)
1104-
t.match(err.message, /socket\shang\sup\s-\sLocal:\s127.0.0.1:\d+,\sRemote:\s127.0.0.1:\d+/)
1104+
t.match(err.message, /socket\shang\sup\s-\sLocal:\s(127.0.0.1|::1):\d+,\sRemote:\s(127.0.0.1|::1):\d+/)
11051105
server.stop()
11061106
})
11071107
})

0 commit comments

Comments
 (0)