Credits Caching Pipeline Test
This commit is contained in:
@@ -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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user