Credits Caching Pipeline Test

This commit is contained in:
2026-05-07 12:13:03 +02:00
parent b717b9cce2
commit 13a615dbd7
+11 -11
View File
@@ -2609,17 +2609,6 @@ func TestBuildHAKsConvertsMusicSourcesAndWritesCreditsArtifacts(t *testing.T) {
} }
] ]
} }
func TestUniqueMusicNameHandlesShortStemCollisions(t *testing.T) {
used := map[string]struct{}{
"mus_wg_mystc": {},
}
got := uniqueMusicName("mus_wg_mystc", used)
if got != "mus_wg_mystc_1" {
t.Fatalf("unexpected collision result: got %q want %q", got, "mus_wg_mystc_1")
}
}
`) `)
mustWriteFile(t, filepath.Join(root, "assets", "envi", "music", "westgate", "AleandAnecdotes.mp3"), "source-mp3") mustWriteFile(t, filepath.Join(root, "assets", "envi", "music", "westgate", "AleandAnecdotes.mp3"), "source-mp3")
@@ -2697,3 +2686,14 @@ func TestUniqueMusicNameHandlesShortStemCollisions(t *testing.T) {
t.Fatalf("expected temporary music staging to be cleaned, got err=%v", err) t.Fatalf("expected temporary music staging to be cleaned, got err=%v", err)
} }
} }
func TestUniqueMusicNameHandlesShortStemCollisions(t *testing.T) {
used := map[string]struct{}{
"mus_wg_mystc": {},
}
got := uniqueMusicName("mus_wg_mystc", used)
if got != "mus_wg_mystc_1" {
t.Fatalf("unexpected collision result: got %q want %q", got, "mus_wg_mystc_1")
}
}