From efd7ab940b296778c10a063821f8d5da780d32b5 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sun, 26 Jan 2020 00:22:29 +0100 Subject: [PATCH] Revert "Lame attempt to hide problems on Jenkins." This reverts commit 9c4576b88a62b128692436b70a3e7b2e48b1a396. --- examples/python/async-wait/async-wait.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/python/async-wait/async-wait.py b/examples/python/async-wait/async-wait.py index c9338a93d2..667f01fc79 100644 --- a/examples/python/async-wait/async-wait.py +++ b/examples/python/async-wait/async-wait.py @@ -60,11 +60,9 @@ class Receiver: def __init__(self, *args): if len(args) != 1: # Receiver actor expects 1 argument: its ID raise AssertionError("Actor receiver requires 1 parameter, but got {:d}".format(len(args))) - self.id = int(args[0]) + self.mbox = Mailbox.by_name("receiver-{:s}".format(args[0])) def __call__(self): - # FIXME: It should be ok to initialize self.mbox from __init__, but it's currently failing on the OS X Jenkins slave. - self.mbox = Mailbox.by_name("receiver-{:d}".format(self.id)) this_actor.info("Wait for my first message") while True: received = self.mbox.get() -- 2.20.1