21310e7716
Companion to the dbtest.ResetDB change. The bootstrap integration test fundamentally needs an empty users table — it exercises the "first time admin is created" path, which Bootstrap() guards with a count==0 check. So this test alone still has to TRUNCATE users. To keep the operator's admin login intact on a shared dev DB: - Before TRUNCATE, save every user that doesn't start with 'test-'. - Use cfg.Username = 'test-admin' for the bootstrap call so the test row is itself test-prefixed and gets cleaned up by other tests' ResetDB calls. - t.Cleanup restores the saved rows after assertions complete, so admin/admin (or whatever password the operator set) keeps working between test runs. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>