remove global

This commit is contained in:
2025-12-18 18:43:23 -06:00
parent aa18a8c8d2
commit d50f4119ee
60 changed files with 378 additions and 282 deletions

View File

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