diff --git a/tests/test_transactions.py b/tests/test_transactions.py index a58528af..b6be5471 100644 --- a/tests/test_transactions.py +++ b/tests/test_transactions.py @@ -8,7 +8,7 @@ from lakefs_spec import LakeFSFileSystem from lakefs_spec.transaction import Placeholder -from tests.util import RandomFileFactory, put_random_file_on_branch, with_counter +from tests.util import RandomFileFactory, put_random_file_on_branch def test_transaction_commit( @@ -143,7 +143,6 @@ def test_transaction_failure( message = f"Add file {random_file.name}" - fs.client, counter = with_counter(fs.client) try: with fs.transaction as tx: fs.put_file(lpath, rpath) @@ -153,7 +152,7 @@ def test_transaction_failure( pass # assert that no commit happens because of the exception. - assert counter.count("commits_api.commit") == 0 + assert not fs.exists(rpath) def test_placeholder_representations(