fix(external): recovery-sweep threshold + queue recording + split fetch timeouts (#883) #116
@@ -222,7 +222,7 @@ def test_downloaded_archive_gets_provenance_and_tagging(db_sync, tmp_path, monke
|
|||||||
monkeypatch.setattr(ext, "IMAGES_ROOT", tmp_path)
|
monkeypatch.setattr(ext, "IMAGES_ROOT", tmp_path)
|
||||||
monkeypatch.setattr(ext, "_redis", lambda: _FakeRedis())
|
monkeypatch.setattr(ext, "_redis", lambda: _FakeRedis())
|
||||||
|
|
||||||
def fake_fetch(host, url, dest_dir, *, timeout, should_stop=lambda: False):
|
def fake_fetch(host, url, dest_dir, **kwargs):
|
||||||
dest_dir.mkdir(parents=True, exist_ok=True)
|
dest_dir.mkdir(parents=True, exist_ok=True)
|
||||||
zpath = dest_dir / "pack.zip"
|
zpath = dest_dir / "pack.zip"
|
||||||
with zipfile.ZipFile(zpath, "w") as z:
|
with zipfile.ZipFile(zpath, "w") as z:
|
||||||
|
|||||||
Reference in New Issue
Block a user