X-Git-Url: https://jxself.org/git/?p=8sync.git;a=blobdiff_plain;f=tests%2Ftest-actors.scm;fp=tests%2Ftest-actors.scm;h=4c8795a75f089dd263287ff532a4a8b4ae02f7c2;hp=36614b227b4c9866a918eed085b681fe29e9a5ba;hb=171dbab2f07df50ac5b1daedfbef6d60860b7935;hpb=ad2cc60c709045ba78a7957b149be86b4a21b49c diff --git a/tests/test-actors.scm b/tests/test-actors.scm index 36614b2..4c8795a 100644 --- a/tests/test-actors.scm +++ b/tests/test-actors.scm @@ -98,13 +98,13 @@ (define-simple-actor ((pester-rep actor message) (~display "customer> I'm calling customer service about this!\n") - (let ((reply (send-message-wait actor (message-ref message 'who-to-call) - 'field-call))) + (let ((reply (<-wait actor (message-ref message 'who-to-call) + 'field-call))) (if (message-ref reply '*auto-reply* #f) (~display "customer> Whaaaaat? I can't believe I got voice mail!\n") (begin (~format "*customer hears*: ~a\n" (message-ref reply 'msg)) - (let ((reply (reply-message-wait + (let ((reply (<-reply-wait actor reply #:msg "Yes, it didn't work, I'm VERY ANGRY!"))) (if (message-ref reply '*auto-reply* #f) @@ -115,7 +115,7 @@ ((field-call actor message) (~display "good-rep> Hm, another call from a customer...\n") (let ((reply - (reply-message-wait + (<-reply-wait actor message #:msg "Have you tried turning it off and on?"))) (~format "*rep hears*: ~a\n" (message-ref reply 'msg))