From b831b4ab316bdb7f021c0f647303acf36413985f Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 23 Jan 2019 12:44:08 +0000 Subject: [PATCH] issue #477: stop using router.fork() in receiver_test --- tests/receiver_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/receiver_test.py b/tests/receiver_test.py index 72b0007e..65c5f7ff 100644 --- a/tests/receiver_test.py +++ b/tests/receiver_test.py @@ -32,7 +32,7 @@ class ConstructorTest(testlib.RouterMixin, testlib.TestCase): class IterationTest(testlib.RouterMixin, testlib.TestCase): def test_dead_stops_iteration(self): recv = mitogen.core.Receiver(self.router) - fork = self.router.fork() + fork = self.router.local() ret = fork.call_async(yield_stuff_then_die, recv.to_sender()) self.assertEquals(list(range(5)), list(m.unpickle() for m in recv)) self.assertEquals(10, ret.get().unpickle())