summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/mod.rs8
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());
}