gc: fix test_gc_no_dir_cache

This commit is contained in:
dberenbaum
2023-12-20 00:21:23 +02:00
committed by Ruslan Kuprieiev
parent 827f9a7f03
commit 457d615a51
+2 -1
View File
@@ -111,8 +111,9 @@ def test_gc_no_dir_cache(tmp_dir, dvc):
remove(dir_stage.outs[0].cache_path) remove(dir_stage.outs[0].cache_path)
with pytest.raises(CollectCacheError): with pytest.raises(RevCollectionError) as exc:
dvc.gc(workspace=True) dvc.gc(workspace=True)
assert type(exc.value.__cause__) == CollectCacheError
assert _count_files(dvc.cache.local.path) == 4 assert _count_files(dvc.cache.local.path) == 4
dvc.gc(force=True, workspace=True) dvc.gc(force=True, workspace=True)