Skip to content

The agent that grows with you

test(release): the in-transit corruption case always flips a byte (review)

Teknium97a9ae8ee55d
diff --git a/tests/scripts/test_release_r2.py b/tests/scripts/test_release_r2.py
index 67826239d8e..e2bc05abb13 100644
--- a/tests/scripts/test_release_r2.py
+++ b/tests/scripts/test_release_r2.py
@@ -799,7 +799,7 @@ def test_download_streams_verified_bytes_and_preserves_destination_on_failure(r2
def corrupt_once(handler):
sent.append(1)
if len(sent) == 1:
- handler._send(200, payload[:-1] + b"!")
+ handler._send(200, payload[:-1] + bytes([payload[-1] ^ 1]))
else:
original_get(handler)