Skip to content

Commit

Permalink
test: Updated undici versioned tests to assert an error is present an…
Browse files Browse the repository at this point in the history
…d not the actual message (#2299)
  • Loading branch information
amychisholm03 authored Jun 25, 2024
1 parent 2e7252e commit 4e38ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/versioned/undici/requests.tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4e38ed4

Please sign in to comment.