From 4e38ed494f2706d4c6b3f89474efb7365e766903 Mon Sep 17 00:00:00 2001 From: Amy Chisholm Date: Tue, 25 Jun 2024 13:54:19 -0700 Subject: [PATCH] test: Updated undici versioned tests to assert an error is present and not the actual message (#2299) --- test/versioned/undici/requests.tap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/versioned/undici/requests.tap.js b/test/versioned/undici/requests.tap.js index 08458e210b..f2f37a23e9 100644 --- a/test/versioned/undici/requests.tap.js +++ b/test/versioned/undici/requests.tap.js @@ -222,7 +222,7 @@ tap.test('Undici request tests', (t) => { method: 'GET' }) } catch (err) { - t.match(err.message, /getaddrinfo.*invalidurl/) + t.ok(err) t.assertSegments(tx.trace.root, ['External/invalidurl/foo'], { exact: false }) t.equal(tx.exceptions.length, 1) tx.end()