Skip to content

Commit efc79e0

Browse files
committed
Update friendly error message from WebSocket in node.js
1 parent 267449c commit efc79e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/socket/src/socketwrapper.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const enabled = !!globalThis.process?.env.SOCKETSERVER_ENABLED;
5959
(error) => {
6060
if (error.message) {
6161
// error message only available in nodejs
62-
expect(error.message).toMatch(/ECONNREFUSED/i);
62+
expect(error.message).toMatch(/network error or non-101 status code/i);
6363
}
6464
done();
6565
},

0 commit comments

Comments
 (0)