hyf

Context-aware query service for Radroots
git clone https://radroots.dev/git/hyf.git
Log | Files | Refs | README | LICENSE

commit ba5cbccf7c9c3e36e1d3eda54f358f9354617c91
parent d4321fc2df02ce2f65785d91361ffbd3bb7cc0d5
Author: triesap <tyson@radroots.org>
Date:   Mon, 21 Sep 2026 14:03:21 +0000

runtime: verify daemon shutdown and long-session cleanup

Diffstat:
Mtests/test_persistent_stdio.mojo | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/tests/test_persistent_stdio.mojo b/tests/test_persistent_stdio.mojo @@ -129,3 +129,16 @@ def test_new_operation_wire_frames_are_gated() raises: assert_true( responses[0].find(scenario["expected_error_code"].string_value()) >= 0 ) + + +def test_long_session_processes_many_frames_in_order() raises: + with TemporaryDirectory() as temp_dir: + var context = _context(temp_dir) + var frames = List[String]() + for index in range(50): + frames.append(load_scenario_request_json("scenarios/status_ok.json")) + var responses = run_stdio_session(frames, context) + assert_equal(len(responses), 50) + for response in responses: + assert_true(response.find('"ok":true') >= 0) + assert_true(response.find("status-fixture-1") >= 0)