Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

test: wait for startup before restoring partial download

Josh Corbettb7d03a23332c
diff --git a/tests/app/services/model_install/test_model_install.py b/tests/app/services/model_install/test_model_install.py
index 421098f5c6..2639a1d3f5 100644
--- a/tests/app/services/model_install/test_model_install.py
+++ b/tests/app/services/model_install/test_model_install.py
@@ -960,6 +960,7 @@ def test_restore_metadata_timeout_preserves_partial_download_for_retry(
monkeypatch: pytest.MonkeyPatch,
) -> None:
assert isinstance(mm2_installer, ModelInstallService)
+ assert mm2_installer._wait_for_restore_complete(timeout=10)
tmpdir = mm2_app_config.models_path / f"{TMPDIR_PREFIX}restore-timeout-{uuid.uuid4().hex}"
tmpdir.mkdir(parents=True)
partial_path = tmpdir / "weights.safetensors.downloading"