mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-26 23:50:17 +00:00
fix(tunnel): add missing .unwrap() in stdout_drain_prevents_zombie test
CustomTunnel::new was changed to return Result<Self> but this test callsite was missed. Fixes compilation error. [skip-regression-check]
This commit is contained in:
@@ -281,7 +281,7 @@ mod tests {
|
||||
// `yes` floods stdout indefinitely; without the drain task the pipe
|
||||
// buffer fills (64 KB) and the child blocks on write(), becoming a
|
||||
// zombie. With draining the child stays alive and stop() can kill it.
|
||||
let tunnel = CustomTunnel::new("yes".into(), None, None);
|
||||
let tunnel = CustomTunnel::new("yes".into(), None, None).unwrap();
|
||||
let url = tunnel.start("127.0.0.1", 19999).await.unwrap();
|
||||
assert_eq!(url, "http://127.0.0.1:19999");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user