Skip to content

Commit

Permalink
Clean up merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dbutenhof committed Sep 27, 2023
1 parent cff2e5c commit 85e8d5b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/pbench/test/unit/server/test_cache_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,6 @@ def mock_run(command, _dir_path, exception, dir_p):
tb = Tarball(
tar, "ABC", Controller(Path("/mock/archive"), cache, make_logger)
)
with pytest.raises(TarballUnpackError) as exc:
tb.cache_create()
msg = f"An error occurred while unpacking {tar}: Command 'tar' timed out after 43 seconds"
with pytest.raises(TarballUnpackError, match=msg):
tb.cache_create()
Expand Down Expand Up @@ -1018,9 +1016,7 @@ def fake_create(self):
with monkeypatch.context() as m:
m.setattr(Tarball, "__init__", TestCacheManager.MockTarball.__init__)
m.setattr(Controller, "__init__", TestCacheManager.MockController.__init__)
tb = Tarball(
tar, "ABC", Controller(archive, cache, make_logger)
)
tb = Tarball(tar, "ABC", Controller(archive, cache, make_logger))
m.setattr(Tarball, "cache_create", fake_create)
if is_unpacked:
tb.unpacked = unpacked
Expand Down Expand Up @@ -1689,8 +1685,8 @@ def test_compatibility(
t2 = cm1[id]
assert t1.name == t2.name == Dataset.stem(source_tarball)

t1.unpack()
t2.unpack()
t1.cache_create()
t2.cache_create()

assert t1.unpacked != t2.unpacked
assert (t1.unpacked / "metadata.log").is_file()
Expand Down

0 comments on commit 85e8d5b

Please sign in to comment.