Skip to content

Commit 1cb6c79

Browse files
committed
fix race condition in test
1 parent 601dad0 commit 1cb6c79

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/test_persistence.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,4 @@ def test_maybe_get_cached_model_path() -> None:
7474
assert maybe_get_cached_model_path(model_id) == None
7575
repo_dir_a = with_snapshot / "a"
7676
repo_dir_a.mkdir(parents=True, exist_ok=True)
77-
repo_dir_b = with_snapshot / "b"
78-
repo_dir_b.mkdir(parents=True, exist_ok=True)
79-
assert maybe_get_cached_model_path(model_id) == repo_dir_b
77+
assert maybe_get_cached_model_path(model_id) == repo_dir_a

0 commit comments

Comments
 (0)