summaryrefslogtreecommitdiff
path: root/cli/tests/integration/inspector_tests.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-08-10 09:59:06 +0530
committerGitHub <noreply@github.com>2023-08-10 09:59:06 +0530
commit91dc6fa5f11f5621c21397c783ee899bfd9657ef (patch)
treeb10905fac7738a987acbaf4354f2e0f8c6286130 /cli/tests/integration/inspector_tests.rs
parent8f854782b13658f169920a1a7a21b8e6b64a0c00 (diff)
chore: upgrade fastwebsockets to 0.4.4 (#19089)
Fixes https://github.com/denoland/deno/issues/19041
Diffstat (limited to 'cli/tests/integration/inspector_tests.rs')
-rw-r--r--cli/tests/integration/inspector_tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/integration/inspector_tests.rs b/cli/tests/integration/inspector_tests.rs
index f94dd221b..6b2deb0bf 100644
--- a/cli/tests/integration/inspector_tests.rs
+++ b/cli/tests/integration/inspector_tests.rs
@@ -110,7 +110,7 @@ impl InspectorTester {
for msg in messages {
let result = self
.socket
- .write_frame(Frame::text(msg.to_string().into_bytes()))
+ .write_frame(Frame::text(msg.to_string().into_bytes().into()))
.await
.map_err(|e| anyhow!(e));
self.handle_error(result);
@@ -148,7 +148,7 @@ impl InspectorTester {
loop {
let result = self.socket.read_frame().await.map_err(|e| anyhow!(e));
let message =
- String::from_utf8(self.handle_error(result).payload).unwrap();
+ String::from_utf8(self.handle_error(result).payload.to_vec()).unwrap();
if (self.notification_filter)(&message) {
return message;
}
@@ -540,7 +540,7 @@ async fn inspector_does_not_hang() {
// Check that we can gracefully close the websocket connection.
tester
.socket
- .write_frame(Frame::close_raw(vec![]))
+ .write_frame(Frame::close_raw(vec![].into()))
.await
.unwrap();