fix(test): the mix-writer test reaches oneCopyPerSong through export_test; suspect fixtures carry the verdict (M498 #5439)
release / govulncheck (push) Successful in 26s
release / web (push) Successful in 1m24s
release / go (push) Successful in 1m49s
release / integration (push) Successful in 4m36s
release / android (push) Successful in 6m15s
release / Build signed APK (releases and dev) (push) Successful in 6m30s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 27s
release / Verify release artifacts (tag releases only) (push) Skipped
release / govulncheck (push) Successful in 26s
release / web (push) Successful in 1m24s
release / go (push) Successful in 1m49s
release / integration (push) Successful in 4m36s
release / android (push) Successful in 6m15s
release / Build signed APK (releases and dev) (push) Successful in 6m30s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 27s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package playlists
|
||||
|
||||
// Bridges for the external playlists_test package, whose integration helpers
|
||||
// (newPool, seedTrack) live there.
|
||||
|
||||
// RankedCandidate is rankedCandidate, for tests.
|
||||
type RankedCandidate = rankedCandidate
|
||||
|
||||
// OneCopyPerSong is oneCopyPerSong, for tests.
|
||||
var OneCopyPerSong = oneCopyPerSong
|
||||
@@ -1,4 +1,4 @@
|
||||
package playlists
|
||||
package playlists_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/jackc/pgx/v5/pgtype"
|
||||
|
||||
"git.fabledsword.com/bvandeusen/minstrel/internal/db/dbq"
|
||||
"git.fabledsword.com/bvandeusen/minstrel/internal/playlists"
|
||||
)
|
||||
|
||||
// A mix holds a song once (M498 #5438) and never a held-back video rip
|
||||
@@ -30,10 +31,10 @@ func TestOneCopyPerSong_Integration(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
in := []rankedCandidate{
|
||||
in := []playlists.RankedCandidate{
|
||||
{TrackID: single.ID}, {TrackID: rip.ID}, {TrackID: albumCut.ID}, {TrackID: other.ID}, {TrackID: clean.ID},
|
||||
}
|
||||
out, err := oneCopyPerSong(ctx, q, in)
|
||||
out, err := playlists.OneCopyPerSong(ctx, q, in)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user