The first public release of Fabled Minstrel #158
@@ -105,7 +105,9 @@ func TestLikeTrack_AnswersEveryCopyOfTheSong(t *testing.T) {
|
|||||||
album := seedAlbum(t, pool, artist.ID, "Harbour Street", 1969)
|
album := seedAlbum(t, pool, artist.ID, "Harbour Street", 1969)
|
||||||
best := seedAlbum(t, pool, artist.ID, "Best Of", 1975)
|
best := seedAlbum(t, pool, artist.ID, "Best Of", 1975)
|
||||||
first := seedTrack(t, pool, album.ID, artist.ID, "Something", 3, 183_000)
|
first := seedTrack(t, pool, album.ID, artist.ID, "Something", 3, 183_000)
|
||||||
copied := seedTrack(t, pool, best.ID, artist.ID, "Something", 1, 183_000)
|
// seedTrack files each title at its own path, so the compilation copy
|
||||||
|
// gets a title of its own; song_id is what makes it the same song.
|
||||||
|
copied := seedTrack(t, pool, best.ID, artist.ID, "Something (Best Of)", 1, 183_000)
|
||||||
if _, err := pool.Exec(context.Background(), "UPDATE tracks SET song_id = $1 WHERE id = $2", first.ID, copied.ID); err != nil {
|
if _, err := pool.Exec(context.Background(), "UPDATE tracks SET song_id = $1 WHERE id = $2", first.ID, copied.ID); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user