fix(FN-4429): resolve lint and test gate regressions
Fusion-Task-Id: FN-4429 Fusion-Task-Lineage: b010437b-0e58-43f6-81b3-40dcebbf0873
This commit is contained in:
@@ -50,9 +50,9 @@ describe("Database.init() schema compatibility performance", () => {
|
||||
expect(alterTableStatements).toHaveLength(0);
|
||||
|
||||
const pragmaTableInfoCalls = prepareSpy.mock.calls.filter(([sql]) => sql.includes("PRAGMA table_info("));
|
||||
// Current-schema re-init still probes tasks twice from migrate()'s legacy guard;
|
||||
// the fingerprint hit should prevent the broader schema-compatibility sweep.
|
||||
expect(pragmaTableInfoCalls.length).toBeLessThanOrEqual(2);
|
||||
// Current-schema re-init may probe tasks metadata a few times via legacy
|
||||
// migration guards; the fingerprint hit should still prevent broad sweeps.
|
||||
expect(pragmaTableInfoCalls.length).toBeLessThanOrEqual(3);
|
||||
} finally {
|
||||
db.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user