mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-10 03:30:59 +00:00
fix(test): consume stdin in render_graph RENDER_ERROR fake subprocess
The fake /bin/sh script in the render_error protocol test printed and exited without reading stdin, which raced the parent's write_all on Linux — EPIPE would surface as ChildCrashed (500) instead of the RenderFailed path (400) the test asserts. macOS pipe buffering masked the race. Adding `cat >/dev/null` mirrors the sibling protocol_violation test and makes the child consume the DOT input before printing the RENDER_ERROR line. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4e7026413a
commit
3ed65d3728
1 changed files with 1 additions and 1 deletions
|
|
@ -8167,7 +8167,7 @@ slug = "fabro"
|
|||
#[tokio::test]
|
||||
async fn render_graph_bytes_returns_bad_request_for_render_error_protocol() {
|
||||
let (_dir, script_path) = write_test_executable(
|
||||
"#!/bin/sh\nprintf 'RENDER_ERROR:failed to parse DOT source'\nexit 0\n",
|
||||
"#!/bin/sh\ncat >/dev/null\nprintf 'RENDER_ERROR:failed to parse DOT source'\nexit 0\n",
|
||||
);
|
||||
|
||||
let response =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue