// Test: actor is suspended by fast timer and resumed under slow timer, // completing the computation correctly. $receiver(function(msg) { if (msg.sum == 12499997500000) { log.test("PASS: actor suspended and resumed correctly") } else { log.error(`FAIL: expected 12499997500000, got ${msg.sum}`) } $stop() }) $start(function(event) { if (event.type == 'greet') { send(event.actor, {count: 5000000, reply: $self}) } if (event.type == 'disrupt') { log.error("FAIL: actor was killed instead of completing") $stop() } }, 'tests/slow_compute_actor')