Skip to content

Commit

Permalink
fix: flaky cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed May 21, 2022
1 parent c780c46 commit f9f3e81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ def test_match(tmp_path: Path):
def test_transaction(tmp_path: Path):
with MultiCache(tmp_path) as cache:
with cache["test-foo"] as foo:
foo.json["value"] = 42
assert "42" not in (tmp_path / "test-foo" / "index.json").read_text()
assert "42" in (tmp_path / "test-foo" / "index.json").read_text()
foo.json["something"] = 42
assert "something" not in (tmp_path / "test-foo" / "index.json").read_text()
assert "something" in (tmp_path / "test-foo" / "index.json").read_text()

0 comments on commit f9f3e81

Please sign in to comment.