diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2022-05-23 13:21:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 13:21:11 +0200 |
commit | 3c97bbe165ef0c5e4fa9b9eb637ff481d8c86884 (patch) | |
tree | 750c15354bda8c535cdc4db95d26b19e01ed848d /cli/tests/integration/mod.rs | |
parent | d55444b41cdee5b3f281896a7e60ff06c5fc01de (diff) |
fix(ext/websocket): WebSocket dispatch single close event (#13443)
Diffstat (limited to 'cli/tests/integration/mod.rs')
-rw-r--r-- | cli/tests/integration/mod.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cli/tests/integration/mod.rs b/cli/tests/integration/mod.rs index 7de441874..d0c693a37 100644 --- a/cli/tests/integration/mod.rs +++ b/cli/tests/integration/mod.rs @@ -738,10 +738,12 @@ fn websocket_server_multi_field_connection_header() { .uri("ws://localhost:4319") .body(()) .unwrap(); - assert!( + let (mut socket, _) = deno_runtime::deno_websocket::tokio_tungstenite::tungstenite::connect(req) - .is_ok() - ); + .unwrap(); + let message = socket.read_message().unwrap(); + assert_eq!(message, deno_runtime::deno_websocket::tokio_tungstenite::tungstenite::Message::Close(None)); + socket.close(None).unwrap(); assert!(child.wait().unwrap().success()); } |