Skip to content

Commit 4e36a22

Browse files
committed
drop! Emulate corrupted mirror download
1 parent a75eb65 commit 4e36a22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/azul/indexer/mirror_service.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ def _download(self,
265265
if response.status == expected_status:
266266
log.info('Downloaded %d bytes of file %r in %.3fs',
267267
size, file.uuid, time.time() - start)
268-
return response.data
268+
data = bytearray(response.data)
269+
data[-1] = 42
270+
return data
269271
else:
270272
raise RuntimeError('Unexpected response from repository', response.status)
271273

0 commit comments

Comments
 (0)