Skip to content

Commit 74982ef

Browse files
committed
test(cli): restore Pi abort-kill assertion dropped alongside DeusData#2787 test
The DeusData#2787 change added client_adapter_pi_emits_string_enum_issue2787 directly below client_adapter_pi_wraps_result_and_honors_abort and, in the same hunk, removed that test's check that the generated abort handler kills the cli child (if (!child.killed) child.kill();). The generator still emits the line; restore the assertion byte-for-byte so the abort path keeps its coverage. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 86320af commit 74982ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/test_agent_clients.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,7 @@ TEST(client_adapter_pi_wraps_result_and_honors_abort) {
12431243
ASSERT_NOT_NULL(
12441244
strstr(js, "[{ type: 'text', text: JSON.stringify(result ?? null, null, 2) }]"));
12451245
ASSERT_NOT_NULL(strstr(js, "signal?.addEventListener('abort', onAbort, { once: true })"));
1246+
ASSERT_NOT_NULL(strstr(js, "if (!child.killed) child.kill();"));
12461247
free(js);
12471248
PASS();
12481249
}

0 commit comments

Comments
 (0)