diff --git a/crates/automation/src/rpc/tests.rs b/crates/automation/src/rpc/tests.rs index f5c17ccd9b7..b5c6dbdb839 100644 --- a/crates/automation/src/rpc/tests.rs +++ b/crates/automation/src/rpc/tests.rs @@ -958,6 +958,7 @@ fn tcp_serves_loopback() { let auth = authenticate_tcp(&mut reader, &mut s, TOKEN); assert_eq!(auth["result"]["authenticated"], true); writeln!(s, r#"{{"id":"a","method":"methods"}}"#).unwrap(); + let mut line = String::new(); line.clear(); reader.read_line(&mut line).unwrap(); let v: Value = serde_json::from_str(&line).unwrap();