Skip to content

Commit 151dd4d

Browse files
tests(mm): windows CI issue
1 parent fc3a9cb commit 151dd4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/app/services/model_install/test_model_install.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Test the model installer
33
"""
44

5+
import gc
56
import platform
67
import uuid
78
from pathlib import Path
@@ -220,6 +221,8 @@ def test_delete_install(
220221
model_record = store.get_model(key)
221222
assert (mm2_app_config.models_path / model_record.path).exists()
222223
assert not embedding_file.exists()
224+
# ensure file handles are released on Windows
225+
gc.collect()
223226
mm2_installer.delete(key)
224227
# after deletion, installed copy should not exist
225228
assert not (mm2_app_config.models_path / model_record.path).exists()

0 commit comments

Comments
 (0)