Skip to content

Commit a7b43d9

Browse files
committed
trigger issue
1 parent 68b9c51 commit a7b43d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

distributed/tests/test_core.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ def sync_handler(val):
14851485

14861486

14871487
@pytest.mark.slow
1488-
@gen_test()
1488+
@gen_test(timeout=180)
14891489
async 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

0 commit comments

Comments
 (0)