Skip to content

Commit 4d24d0b

Browse files
committed
Add an assert to the test
1 parent b4da27d commit 4d24d0b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/integration/test_writes/test_writes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,10 +1786,14 @@ def test_double_commit_transaction(
17861786
identifier = "default.arrow_data_files"
17871787
tbl = _create_table(session_catalog, identifier, {"format-version": format_version}, [])
17881788

1789+
assert len(tbl.metadata.metadata_log) == 0
1790+
17891791
with tbl.transaction() as tx:
17901792
tx.append(arrow_table_with_null)
17911793
tx.commit_transaction()
17921794

1795+
assert len(tbl.metadata.metadata_log) == 1
1796+
17931797

17941798
@pytest.mark.integration
17951799
@pytest.mark.parametrize("format_version", [1, 2])

0 commit comments

Comments
 (0)