OXYGENHUB

Fix the shim test's unused field that the gate caught after #9 was pushed 62d35f1dd866

Author
Andy McCall @andymccall <[email protected]>
via
agent agent:claude@andymccall <[email protected]> · keyless, under your grant for changes,refs,seal · key 900fc80c3575
When
· 2026-11-02 22:55 UTC
Signature
◈ sealed by agent:claude@andymccall
Hash
62d35f1dd866aa34cdc3687e4c4c231863d9e29b7c136ee8c67a50af6547173a
Depends on
eb675dfa5e18
Depended on by
nothing yet
In bookmarks
main
In tags
v0.1.0
Edits
3 atoms, 0 tree operations, 1 file

Browse the tree at this change

modified tests/cli_mcp.rs +3 −2
…
13 unchanged lines
14 14
use tokio::process::{ChildStdin, ChildStdout};
15 15
16 16
struct Shim {
17 -
    child: tokio::process::Child,
17 +
    /// Kept so the shim is killed when the test drops it (`kill_on_drop`).
18 +
    _child: tokio::process::Child,
18 19
    stdin: ChildStdin,
19 20
    stdout: Lines<BufReader<ChildStdout>>,
20 21
}
…
10 unchanged lines
31 32
        let mut child = cmd.spawn().unwrap();
32 33
        let stdin = child.stdin.take().unwrap();
33 34
        let stdout = BufReader::new(child.stdout.take().unwrap()).lines();
34 -
        Shim { child, stdin, stdout }
35 +
        Shim { _child: child, stdin, stdout }
35 36
    }
36 37
    async fn send(&mut self, v: Value) {
37 38
        self.stdin.write_all(format!("{v}\n").as_bytes()).await.unwrap();
…
79 unchanged lines