diff options
author | Leo K <crowlkats@toaxl.com> | 2021-08-09 10:45:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 10:45:59 +0200 |
commit | f546f51698636e629f3c314cd73e2cf4f176b330 (patch) | |
tree | 8ab76f3de9bd0a872b8b248d5325b25edea69bd9 /cli/tests | |
parent | 16ae4a0d5799c9a4ed776f32929f73b1063ae4e8 (diff) |
fix(websocket): allow any close code for server (#11614)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit/http_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/unit/http_test.ts b/cli/tests/unit/http_test.ts index ffd29ff86..4cdd84902 100644 --- a/cli/tests/unit/http_test.ts +++ b/cli/tests/unit/http_test.ts @@ -646,7 +646,7 @@ unitTest({ perms: { net: true } }, async function httpServerWebSocket() { socket.onerror = () => fail(); socket.onmessage = (m) => { socket.send(m.data); - socket.close(); + socket.close(1001); }; await respondWith(response); break; |