Skip to content

Commit

Permalink
gc: fix test_gc_no_dir_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dberenbaum authored and efiop committed Dec 19, 2023
1 parent 827f9a7 commit 457d615
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/func/test_gc.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ def test_gc_no_dir_cache(tmp_dir, dvc):

remove(dir_stage.outs[0].cache_path)

with pytest.raises(CollectCacheError):
with pytest.raises(RevCollectionError) as exc:
dvc.gc(workspace=True)
assert type(exc.value.__cause__) == CollectCacheError

assert _count_files(dvc.cache.local.path) == 4
dvc.gc(force=True, workspace=True)
Expand Down

0 comments on commit 457d615

Please sign in to comment.