$start(e => {
  log.console(`got message from hanger: ${e.type}`)
  if (e.type == 'greet')
    $delay(_ => {
      log.console(`sending stop message to hanger`)
      $stop(e.actor)
    }, 1)
    
  if (e.type == 'disrupt') {
    log.console(`underling successfully killed.`)
    send($overling, {type: "test_result", passed: true})
    $stop()
  }
}, 'tests/hang_actor')
