From: Christopher Allan Webber Date: Mon, 2 Jan 2017 18:21:23 +0000 (-0600) Subject: tests: Oops, forgot to add to test-actors. X-Git-Tag: v0.4.0~34 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=42c6617807a7817943567ba967a735b93600d258;p=8sync.git tests: Oops, forgot to add to test-actors. * tests/test-actors.scm: Add . --- diff --git a/tests/test-actors.scm b/tests/test-actors.scm index aad93b5..3efa837 100644 --- a/tests/test-actors.scm +++ b/tests/test-actors.scm @@ -167,6 +167,12 @@ customer> Whaaaaat? I can't believe I got voice mail!\n" ;; The exploder self-destructs, even though run-hive has clean-up ;; disabled, because it cleans up on self-destruct. +(define-simple-actor + (explode (lambda (exploder message) + (speak "POOF\n") + (self-destruct exploder))) + (*clean-up* (lambda _ (speak "Cleaning up post-explosion\n")))) + (with-fresh-speaker (let ((hive (make-hive))) (define exploder (hive-create-actor hive ))