mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-07-18 14:16:20 +00:00
The new RunStartupLoad tests + the rewritten Test1809 fixture trip the
async-migration preflight gate because they inline CREATE TABLE /
CREATE INDEX in test helpers. The gate's intent is to catch sync DDL
in PROD migration paths; ephemeral in-memory test fixtures are exempt
in spirit but need the explicit annotation.
Two changes:
* runstartup_load_test.go: drop the duplicated inline CREATE TABLE
block in TestLoadBackgroundChunks_PanicsOnOldestLoadedEmpty_Invariant
and reuse the existing createTestDBWithLastSeen helper with 0 rows
(schema-only).
* issue1809_bg_load_race_test.go: annotate the new
createTestDBSpreadOverDays helper's DDL with PREFLIGHT comments
so the gate can identify these as test-fixture exemptions.
No behavior change. Refs PR #1811.