test(subsonic): album-list fixture users carry distinct api token hashes (#6293)
release / govulncheck (push) Successful in 18s
release / web (push) Successful in 1m25s
release / go (push) Successful in 1m45s
release / integration (push) Successful in 5m23s
release / android (push) Successful in 5m35s
release / Build signed APK (releases and dev) (push) Successful in 5m39s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped

users.api_token_hash is unique, so the second seeded user needs its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 14:05:45 -04:00
co-authored by Claude Opus 5.5
parent f3b124f9b2
commit 0d0b04bff0
+1 -1
View File
@@ -63,7 +63,7 @@ func seedPlayHistory(t *testing.T) playHistoryFixture {
t.Fatalf("create user: %v", err)
}
other, err := q.CreateUser(ctx, dbq.CreateUserParams{
Username: dbtest.TestUserPrefix + "other", PasswordHash: "x", ApiTokenHash: "x",
Username: dbtest.TestUserPrefix + "other", PasswordHash: "x", ApiTokenHash: "y",
})
if err != nil {
t.Fatalf("create other user: %v", err)