Skip to content

Commit b17ea69

Browse files
committed
test: fix
1 parent ffd354d commit b17ea69

File tree

1 file changed

+1
-1
lines changed
  • packages/collector/test/tracing/protocols/http/server

1 file changed

+1
-1
lines changed

packages/collector/test/tracing/protocols/http/server/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ function registerTests(agentControls, appUsesHttps, useHttp2CompatApi) {
544544
fail('Expected the HTTP connection to be closed by the server.');
545545
})
546546
.catch(err => {
547-
if ((err.error && err.error.code === 'ECONNRESET') || err.code === 'ECONNRESET') {
547+
if (err.error?.code === 'ECONNRESET' || err.code === 'ECONNRESET' || err.cause?.code === 'UND_ERR_SOCKET') {
548548
// We actually expect the request to time out. But we still want to verify that an entry span has been created
549549
// for it.
550550
return retry(() =>

0 commit comments

Comments
 (0)