Skip to content

Commit 240ef61

Browse files
committed
Fix case sensitivity for YouTube cookie environment variable in tests
1 parent f705a7e commit 240ef61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/music/music_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ func TestDownloadSong(t *testing.T) {
1616
}
1717
}
1818

19-
fmt.Println("YOUTUBE_COOKIE: ", os.Getenv("YOUTUBE_COOKIE"))
19+
fmt.Println("youtube_cookie: ", os.Getenv("youtube_cookie"))
2020

21-
song, err := DownloadSong("https://www.youtube.com/watch?v=d3J3uJpCgos&list=PLwCTYY94JxbZHrJ-anoUuFkNHSFQqe438&index=6&pp=gAQBiAQB8AUB", os.Getenv("YOUTUBE_COOKIE"))
21+
song, err := DownloadSong("https://www.youtube.com/watch?v=d3J3uJpCgos&list=PLwCTYY94JxbZHrJ-anoUuFkNHSFQqe438&index=6&pp=gAQBiAQB8AUB", os.Getenv("youtube_cookie"))
2222
if err != nil {
2323
t.Errorf("Expected no error, got: %v", err)
2424
}
@@ -33,7 +33,7 @@ func TestDownloadSong(t *testing.T) {
3333
}
3434

3535
func TestDownloadSongError(t *testing.T) {
36-
song, err := DownloadSong("https://www.youtube.com/watch?v=", os.Getenv("YOUTUBE_COOKIE"))
36+
song, err := DownloadSong("https://www.youtube.com/watch?v=", os.Getenv("youtube_cookie"))
3737
if err == nil {
3838
t.Errorf("Expected error, got nil")
3939
}
@@ -44,7 +44,7 @@ func TestDownloadSongError(t *testing.T) {
4444
}
4545

4646
func TestDownloadSongAlreadyExists(t *testing.T) {
47-
song, err := DownloadSong("https://www.youtube.com/watch?v=d3J3uJpCgos&list=PLwCTYY94JxbZHrJ-anoUuFkNHSFQqe438&index=6&pp=gAQBiAQB8AUB", os.Getenv("YOUTUBE_COOKIE"))
47+
song, err := DownloadSong("https://www.youtube.com/watch?v=d3J3uJpCgos&list=PLwCTYY94JxbZHrJ-anoUuFkNHSFQqe438&index=6&pp=gAQBiAQB8AUB", os.Getenv("youtube_cookie"))
4848
if err != nil {
4949
return
5050
}

0 commit comments

Comments
 (0)