automation: declare the loopback test response buffer

This commit is contained in:
Dylan M. Taylor committed 2026-11-14 17:28:23 -05:00
1 parent 97592b75e9
commit ca85c301b9
1 file changed
+1
+1
View File
@@ -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();