diff --git a/test.go b/test.go index 07e6752..feb5e67 100644 --- a/test.go +++ b/test.go @@ -14,9 +14,9 @@ func createClient(uname string) *gumble.Client { } func TestYoutubeSong(t *testing.T) { - dummy1Client := createClient("dummy") - dummy1Client.Connect() - dummy1 := gumble.Users.Find("dummy") + dummyClient := createClient("dummy") + dummyClient.Connect() + dummyUser := dj.client.Find("dummy") // Don't judge, I used the (autogenerated) Top Tracks for United Kingdom playlist songs := map[string]string{ @@ -31,7 +31,7 @@ func TestYoutubeSong(t *testing.T) { } for url, title := range songs { - err := add(dummy1, url) + err := add(dummyUser, url) if err != nil { t.Error( "For", url, @@ -45,8 +45,8 @@ func TestYoutubeSong(t *testing.T) { "got", dj.queue.CurrentSong().Title(), ) } - skip(dummy1, false, false) + skip(dummyUser, false, false) } - dummy1Client.Disconnect() + dummyClient.Disconnect() }