diff options
author | Yosi Pramajaya <yosi.pramajaya@gmail.com> | 2020-12-24 20:11:32 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 14:11:32 +0100 |
commit | b15539587e7cf6b67c2ae7d4dc39901634bf6bd5 (patch) | |
tree | 7629bd4263553534f5305f288dc2e9ae192ffea2 /cli/tests/websocket_test.ts | |
parent | a4d557126e49108db4c0dc42561ae032d2418b04 (diff) |
refactor(test_util): replace "warp" with "hyper" (#8846)
This commit rewrites "test_server" to use "hyper"
instead of "warp" in an effort to reduce number of
dependencies.
Diffstat (limited to 'cli/tests/websocket_test.ts')
-rw-r--r-- | cli/tests/websocket_test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/websocket_test.ts b/cli/tests/websocket_test.ts index 51876dc59..a220b37ea 100644 --- a/cli/tests/websocket_test.ts +++ b/cli/tests/websocket_test.ts @@ -159,7 +159,9 @@ Deno.test("websocket error", async () => { ws.onopen = () => fail(); ws.onerror = (err): void => { assert(err instanceof ErrorEvent); - assertEquals(err.message, "InvalidData: received corrupt message"); + + // Error message got changed because we don't use warp in test_util + assertEquals(err.message, "UnexpectedEof: tls handshake eof"); promise1.resolve(); }; await promise1; |