Orchestrata Ultimate › Tests › Reference › scripts › test_no_unbounded_wait

Tests reference — tests/scripts/test_no_unbounded_wait.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_no_unbounded_wait.py

source · 12 tests · 151 lines

Tests for .claude/hooks/no-unbounded-wait.sh — the guard that refuses a

Kind Name Line Description
function test_the_orphaned_waiter_shape_is_denied 45 The exact shape found alive after 3 days on this box.
function test_a_negated_condition_waiter_is_denied 51 while ! <test> is the same immortal loop written the other way round.
function test_a_spin_loop_is_denied 56 An empty body burns a whole core, so it is worse than the sleeping form.
function test_the_spin_loop_denial_names_cpu_not_just_orphaning 61 The two shapes fail differently and the operator needs to know which.
function test_a_timeout_bounded_wait_is_allowed 79 A bounded wait always terminates, so it is not the defect.
function test_a_counted_loop_is_allowed 85 for iterates a finite list; it cannot become immortal.
function test_while_read_line_processing_is_allowed 90 The overwhelmingly common while-loop in this repo must not be blocked.
function test_sleep_then_read_without_a_loop_is_allowed 100 The sanctioned wait: sleep once, then read the output file.
function test_mentions_are_not_invocations 106 A command that merely CONTAINS a wait loop in a quoted argument.
function test_an_ordinary_command_is_allowed 119
function test_an_unreadable_payload_is_denied_not_allowed 123 A guard that cannot evaluate must not wave the command through.
function test_hook_is_registered_as_a_bash_pretooluse_hook 139 RUL-023: a hook nothing invokes is not a delivery.