1 parent c26d865 commit 3d32e32Copy full SHA for 3d32e32
1 file changed
tests/table/test_commit_retry.py
@@ -72,18 +72,7 @@ def test_commit_retry_on_commit_failed(catalog: Catalog) -> None:
72
tbl1.append(df)
73
74
# Second append should succeed via retry (append vs append never conflicts)
75
- original_rebuild = Transaction._rebuild_snapshot_updates
76
- rebuild_count = 0
77
-
78
- def counting_rebuild(self_tx: Transaction) -> None:
79
- nonlocal rebuild_count
80
- rebuild_count += 1
81
- original_rebuild(self_tx)
82
83
- with patch.object(Transaction, "_rebuild_snapshot_updates", counting_rebuild):
84
- tbl2.append(df)
85
86
- assert rebuild_count == 1, "Expected exactly one retry via _rebuild_snapshot_updates"
+ tbl2.append(df)
87
88
# Both appends should be visible
89
refreshed = catalog.load_table("default.retry_test")
0 commit comments