From 2c309d58453d1fc866a25e0dda7d10461d755626 Mon Sep 17 00:00:00 2001 From: Leonardo Venturini Date: Sat, 18 Nov 2023 17:00:09 -0300 Subject: [PATCH] revert test changes --- tests/hijack/http_fetch.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/hijack/http_fetch.js b/tests/hijack/http_fetch.js index 73d2a555..b94d310f 100644 --- a/tests/hijack/http_fetch.js +++ b/tests/hijack/http_fetch.js @@ -35,8 +35,6 @@ addAsyncTest('HTTP - meteor/fetch - trace error', async function (test) { const result = await callAsync(methodId); const events = getLastMethodEvents([0, 2]); - const isIpv6 = result.message.includes('::1'); - const expected = [ ['start', { userId: null, params: '[]' }], ['wait', { waitOn: [] }], @@ -46,17 +44,17 @@ addAsyncTest('HTTP - meteor/fetch - trace error', async function (test) { method: 'GET', url: 'http://localhost:9999/', library: 'meteor/fetch', - err: `request to http://localhost:9999/ failed, reason: connect ECONNREFUSED ${isIpv6 ? '::1' : '127.0.0.1'}:9999`, + err: 'request to http://localhost:9999/ failed, reason: ', }, ], ['complete'], ]; - test.equal(events, expected); + test.stableEqual(events, expected); - test.equal(result, { + test.stableEqual(result, { message: - `request to http://localhost:9999/ failed, reason: connect ECONNREFUSED ${isIpv6 ? '::1' : '127.0.0.1'}:9999`, + 'request to http://localhost:9999/ failed, reason: ', type: 'system', errno: 'ECONNREFUSED', code: 'ECONNREFUSED',