// Test: $start lifecycle events (greet and stop)
var got_greet = false
$start(function(event) {
  if (event.type == 'greet') {
    if (!event.actor) disrupt
    if (!is_actor(event.actor)) disrupt
    got_greet = true
  }
  if (event.type == 'stop') {
    if (!got_greet) disrupt
    $stop()
  }
}, 'tests/actor_helper_stop')
