diff --git a/test/unit/connection.test.js b/test/unit/connection.test.js index a556564a0..edac626ab 100644 --- a/test/unit/connection.test.js +++ b/test/unit/connection.test.js @@ -1101,7 +1101,7 @@ test('Should show local/remote socket address in case of ECONNRESET', t => { method: 'GET' }, (err, res) => { 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() }) })