Files
cell/tests/actor_slow_killed.ce
2026-02-20 15:33:46 -06:00

14 lines
458 B
Plaintext

// Test: actor with infinite loop is killed by slow timer
// Parent starts a child that hangs forever. The child should be
// killed by the slow timer, triggering a 'disrupt' event.
$start(function(event) {
if (event.type == 'greet') {
// child started, just wait for it to die
}
if (event.type == 'disrupt') {
// child was killed by the timer — success
log.test("PASS: slow actor killed by timer")
$stop()
}
}, 'tests/hang_actor')