diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-17 20:06:52 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-17 20:07:18 +0300 |
| commit | f161be04613211d8fee7ef18e6e506df09da3ba1 (patch) | |
| tree | ec65649c42f95104ec04c33d19c056f169a41189 /tests/cli_wrapper.rs | |
| parent | 45a4318bbbcb2c91d95faee6f31e5846ae3f9ec0 (diff) | |
fix: detect Grok Build agent state
refs #133
Diffstat (limited to 'tests/cli_wrapper.rs')
| -rw-r--r-- | tests/cli_wrapper.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/cli_wrapper.rs b/tests/cli_wrapper.rs index dd07f760..d43f52ef 100644 --- a/tests/cli_wrapper.rs +++ b/tests/cli_wrapper.rs @@ -399,11 +399,9 @@ fn run_claude_hook(action: &str, hook_input: &str) -> Option<serde_json::Value> let mut line = String::new(); let mut reader = BufReader::new(stream.try_clone().unwrap()); reader.read_line(&mut line).unwrap(); - stream - .write_all(br#"{"id":"test","result":{"type":"ok"}}"#) - .unwrap(); - stream.write_all(b"\n").unwrap(); - stream.flush().unwrap(); + let _ = stream.write_all(br#"{"id":"test","result":{"type":"ok"}}"#); + let _ = stream.write_all(b"\n"); + let _ = stream.flush(); return Some(line); } Err(err) if err.kind() == std::io::ErrorKind::WouldBlock => { |
