From 9eb3df5d288c3c4ed780db318750039f66e514da Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Tue, 27 Jun 2023 16:26:51 -0500 Subject: [PATCH] Connection test should support IPv6 --- test/unit/connection.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }) })