Skip to content

Commit 8044240

Browse files
committed
Fix
1 parent c2383e5 commit 8044240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

juniper_axum/tests/ws_test_suite.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl TestApp {
7575
) -> Result<(), anyhow::Error> {
7676
match message {
7777
WsIntegrationMessage::Send(msg) => websocket
78-
.send(Message::Text(msg.to_string()))
78+
.send(Message::Text(msg.to_string().into()))
7979
.await
8080
.map_err(|e| anyhow!("Could not send message: {e}"))
8181
.map(drop),
@@ -88,7 +88,7 @@ impl TestApp {
8888
None => Err(anyhow!("No message received")),
8989
Some(Err(e)) => Err(anyhow!("WebSocket error: {e}")),
9090
Some(Ok(Message::Text(json))) => {
91-
let actual: serde_json::Value = serde_json::from_str(&json)
91+
let actual: serde_json::Value = serde_json::from_str(json.as_str())
9292
.map_err(|e| anyhow!("Cannot deserialize received message: {e}"))?;
9393
if actual != expected {
9494
return Err(anyhow!(

0 commit comments

Comments
 (0)