mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
automation: declare the loopback test response buffer
This commit is contained in:
1 file changed
+1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user