Fixing build errors

This commit is contained in:
MichaelOultram 2015-08-10 00:57:08 +01:00
parent 51daba26f0
commit 2d80b9ecb7

12
test.go
View file

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