Connection test should support IPv6
This commit is contained in:
@ -1101,7 +1101,7 @@ test('Should show local/remote socket address in case of ECONNRESET', t => {
|
|||||||
method: 'GET'
|
method: 'GET'
|
||||||
}, (err, res) => {
|
}, (err, res) => {
|
||||||
t.ok(err instanceof ConnectionError)
|
t.ok(err instanceof ConnectionError)
|
||||||
t.match(err.message, /socket\shang\sup\s-\sLocal:\s127.0.0.1:\d+,\sRemote:\s127.0.0.1:\d+/)
|
t.match(err.message, /socket\shang\sup\s-\sLocal:\s(127.0.0.1|::1):\d+,\sRemote:\s(127.0.0.1|::1):\d+/)
|
||||||
server.stop()
|
server.stop()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user