File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1485,7 +1485,7 @@ def sync_handler(val):
14851485
14861486
14871487@pytest .mark .slow
1488- @gen_test ()
1488+ @gen_test (timeout = 180 )
14891489async def test_large_payload (caplog ):
14901490 """See also: protocol/tests/test_protocol.py::test_large_payload"""
14911491 critical_size = 2 ** 31 + 1 # >2 GiB
@@ -1499,7 +1499,9 @@ async def test_large_payload(caplog):
14991499 # At debug level, messages are dumped into the log. By default, pytest captures
15001500 # all logs, which would make this test extremely expensive to run.
15011501 with caplog .at_level (logging .INFO , logger = "distributed.core" ):
1502- await comm .write ({"op" : "echo" , "x" : to_serialize (data )})
1502+ # Note: if we wrap data in to_serialize, it will be sent as a buffer, which
1503+ # is not encoded by msgpack.
1504+ await comm .write ({"op" : "echo" , "x" : data })
15031505 response = await comm .read ()
15041506
15051507 assert response ["result" ] == data
You can’t perform that action at this time.
0 commit comments