fix(tests): make just test pass again #94
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/just-test-stale-migrations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
just testfailed on three fronts. First, linking the ~50 statically-linked test binaries 8-way parallel exhausted memory on a swapless host and the OOM killer terminatedld(SIGTERM). Cap test linking at--jobs 2and trim dev/test debug info to line tables so each link has a smaller footprint.Second,
email_digest_dispatchconstructedAppStatewithout thebgfield added by the background-writer work, so the suite no longer compiled.Third, most test files hand-listed
include_str!migrations and had silently gone stale: new chat/auth migrations (notablymessages.quote_id) were never applied, so 18 suites failed at runtime with "table messages has no column named quote_id". Replace the hand-rolled lists with a sharedtests/commonhelper that runs the full embedded migration set viasqlx::migrate!, so new migrations are picked up automatically. Also refresh the staleinvite_then_accept_creates_membershipenclave test to match the currentpost_inviteAPI (user_idform field, HTML 200 response instead of a redirect).Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com