Skip to content

Commit cf23d0d

Browse files
committed
issue #279: add one more test for max_message_size
1 parent 7ca073c commit cf23d0d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/router_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,13 @@ def test_remote_configured(self):
262262
size = remote.call(return_router_max_message_size)
263263
self.assertEquals(size, 64*1024)
264264

265+
def test_remote_of_remote_configured(self):
266+
router = self.klass(broker=self.broker, max_message_size=64*1024)
267+
remote = router.local()
268+
remote2 = router.local(via=remote)
269+
size = remote2.call(return_router_max_message_size)
270+
self.assertEquals(size, 64*1024)
271+
265272
def test_remote_exceeded(self):
266273
# Ensure new contexts receive a router with the same value.
267274
router = self.klass(broker=self.broker, max_message_size=64*1024)

0 commit comments

Comments
 (0)