Skip to content

Commit a4b6f04

Browse files
test(server): migrate to 72 before replaying peer link migrations
Main's 073 makes a ledger with 70-72 deleted look like a skipped history. Stop at 72 so the test holds the reporter's state: schema through 72, ledger at 69. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 0017aed commit a4b6f04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/persistence/Migrations.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ describe("runMigrations", () => {
116116
it.effect("reapplies peer link migrations whose ledger rows are missing", () =>
117117
Effect.gen(function* () {
118118
const sql = yield* SqlClient.SqlClient;
119-
yield* runMigrations();
119+
yield* runMigrations({ toMigrationInclusive: 72 });
120120
yield* sql`DELETE FROM effect_sql_migrations WHERE migration_id BETWEEN 70 AND 72`;
121121

122122
assert.deepStrictEqual(
123123
yield* runMigrations(),
124-
migrationManifest.filter(([id]) => id >= 70 && id <= 72),
124+
migrationManifest.filter(([id]) => id >= 70),
125125
);
126126
assert.deepStrictEqual(yield* history, migrationManifest);
127127
}).pipe(Effect.provide(NodeSqliteClient.layer({ filename: ":memory:" }))),

0 commit comments

Comments
 (0)