mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-22 17:42:24 +00:00
fix(tools): stabilize session output test
This commit is contained in:
parent
5f0ba05de5
commit
8141df0d3f
@ -269,7 +269,7 @@ def test_write_stdin_can_wait_for_expected_output(tmp_path):
|
|||||||
initial, waited, cleanup = asyncio.run(run())
|
initial, waited, cleanup = asyncio.run(run())
|
||||||
|
|
||||||
assert "Process running" in initial
|
assert "Process running" in initial
|
||||||
assert "booting" in waited
|
assert "booting" in initial + waited
|
||||||
assert "ready" in waited
|
assert "ready" in waited
|
||||||
assert "Wait target not observed" not in waited
|
assert "Wait target not observed" not in waited
|
||||||
assert "Session terminated." in cleanup
|
assert "Session terminated." in cleanup
|
||||||
@ -298,7 +298,7 @@ def test_write_stdin_wait_for_reports_timeout_without_killing_session(tmp_path):
|
|||||||
initial, waited, cleanup = asyncio.run(run())
|
initial, waited, cleanup = asyncio.run(run())
|
||||||
|
|
||||||
assert "Process running" in initial
|
assert "Process running" in initial
|
||||||
assert "booting" in waited
|
assert "booting" in initial + waited
|
||||||
assert "Process running" in waited
|
assert "Process running" in waited
|
||||||
assert "Wait target not observed: 'never-ready'" in waited
|
assert "Wait target not observed: 'never-ready'" in waited
|
||||||
assert "Session terminated." in cleanup
|
assert "Session terminated." in cleanup
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user