fix: the re-tag test sets its clock one statement at a time, as a prepared statement takes only one (M502 #5579)
release / govulncheck (push) Successful in 14s
release / web (push) Successful in 1m17s
release / go (push) Successful in 1m35s
release / integration (push) Successful in 5m9s
release / android (push) Successful in 5m15s
release / Build signed APK (releases and dev) (push) Successful in 5m20s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 24s
release / Verify release artifacts (tag releases only) (push) Skipped
release / govulncheck (push) Successful in 14s
release / web (push) Successful in 1m17s
release / go (push) Successful in 1m35s
release / integration (push) Successful in 5m9s
release / android (push) Successful in 5m15s
release / Build signed APK (releases and dev) (push) Successful in 5m20s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 24s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -131,11 +131,16 @@ func TestListLibrary_MatchesARetaggedAlbum_Integration(t *testing.T) {
|
||||
AlbumID: untagged.ID, Outcome: "unmatched", Detail: "no match", Matcher: libraryMatcher}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err := pool.Exec(ctx, `
|
||||
UPDATE albums SET created_at = now() - interval '2 hours' WHERE id = $1;
|
||||
UPDATE tracks SET added_at = now() - interval '2 hours' WHERE album_id = $1;
|
||||
UPDATE acquisition_settings SET library_listing_started_at = now() - interval '1 hour',
|
||||
library_listed_at = now() - interval '1 hour', library_unlisted = 1`, untagged.ID); err != nil {
|
||||
for _, stmt := range []string{
|
||||
`UPDATE albums SET created_at = now() - interval '2 hours' WHERE id = $1`,
|
||||
`UPDATE tracks SET added_at = now() - interval '2 hours' WHERE album_id = $1`,
|
||||
} {
|
||||
if _, err := pool.Exec(ctx, stmt, untagged.ID); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
if _, err := pool.Exec(ctx, `UPDATE acquisition_settings SET library_listing_started_at = now() - interval '1 hour',
|
||||
library_listed_at = now() - interval '1 hour', library_unlisted = 1`); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// The re-tag: the same tracks, under the album their new tags name.
|
||||
|
||||
Reference in New Issue
Block a user