From cf23d0dee6f40e5a19b633fd8c4e6744f96a7f72 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 9 Aug 2019 20:33:36 +0100 Subject: [PATCH] issue #279: add one more test for max_message_size --- tests/router_test.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/router_test.py b/tests/router_test.py index e42a065a..dba56c9b 100644 --- a/tests/router_test.py +++ b/tests/router_test.py @@ -262,6 +262,13 @@ class MessageSizeTest(testlib.BrokerMixin, testlib.TestCase): size = remote.call(return_router_max_message_size) self.assertEquals(size, 64*1024) + def test_remote_of_remote_configured(self): + router = self.klass(broker=self.broker, max_message_size=64*1024) + remote = router.local() + remote2 = router.local(via=remote) + size = remote2.call(return_router_max_message_size) + self.assertEquals(size, 64*1024) + def test_remote_exceeded(self): # Ensure new contexts receive a router with the same value. router = self.klass(broker=self.broker, max_message_size=64*1024)