test(cron): R7 initializer probe stops asserting WAL journal mode

main gates WAL by SQLite build (hermes_state_wal WAL-reset-bug guard), so new
databases open in DELETE on CI. Journal mode is runtime policy, not the
adoption contract; the one-COMMIT/one-ROLLBACK/single-fence assertions are.
This commit is contained in:
Victor Kyriazakos
2026-09-17 17:07:43 +00:00
parent 3ebf42f028
commit f45c640e55
+3 -1
View File
@@ -62,7 +62,9 @@ def test_two_concurrent_old_schema_initializers(store,iteration):
result=json.loads(stdout.strip().splitlines()[-1]);results.append(result)
assert result['adopted'] and result['pending']==[1]
assert result['entry'][0]['in_transaction'] is False
assert result['entry'][0]['journal_mode']=='wal'
# Journal mode is runtime policy (hermes_state_wal gates WAL by SQLite build), not the
# contract under test; the atomicity evidence below is what one adoption must satisfy.
assert result['entry'][0]['journal_mode'] in ('wal','delete')
assert sum('COMMIT' in r['trace'] for r in results)==1
assert sum('ROLLBACK' in r['trace'] for r in results)==1
with sqlite3.connect(ex.EXECUTIONS_FILE) as conn: