Skip to content

Commit 337dff7

Browse files
committed
test: opt into throwing WAL replay failures in checksums test
The binding no longer pins throw_on_wal_replay_failure=True; unset settings follow the engine default (false: silently ignore). This test verifies that a checksum mismatch raises, so it must now opt into throwing explicitly.
1 parent 81c9fea commit 337dff7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎test/test_database.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,15 @@ def test_database_enable_checksums_config(tmp_path: Path) -> None:
177177
conn.execute("call force_checkpoint_on_close=false")
178178
conn.execute("create node table test(id int64 primary key)")
179179

180-
# running again with enable_checksums=False should give an error
180+
# running again with enable_checksums=False should give an error, as long as
181+
# WAL replay failures are configured to throw (the engine default is to
182+
# silently ignore them, and the binding no longer overrides that default).
181183
with pytest.raises(RuntimeError) as check:
182-
db = lb.Database(database_path=database_path, enable_checksums=False)
184+
db = lb.Database(
185+
database_path=database_path,
186+
enable_checksums=False,
187+
throw_on_wal_replay_failure=True,
188+
)
183189

184190

185191
def test_database_close_order() -> None:

0 commit comments

Comments
 (0)