diff --git a/tests/test_utils.py b/tests/test_utils.py index e34621f16..2e8ece185 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -492,7 +492,7 @@ def test_pipeline_writer_relay_lends_only_while_a_producer_waits(pauses) -> None # first read fits, so the child can then finish. It is also more than the consumer's pipe holds, so part of it is still # in the relay when cmd2 writes after it. payload = b"x" * (2 * capacity + 2 * 65536) - first_read = len(payload) - capacity - 16384 if pauses else len(payload) + first_read = len(payload) - capacity - 4 * os.sysconf("SC_PAGE_SIZE") if pauses else len(payload) received = bytearray() lent = threading.Event() resume = threading.Event()