diff --git a/test.go b/test.go index 76b9b15..4c989c1 100644 --- a/test.go +++ b/test.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/layeh/gumble/gumble" "github.com/layeh/gumble/gumbleutil" + "os" "time" ) @@ -42,7 +43,10 @@ func (t TestSettings) testYoutubeSong() { // if err := dummyClient.Connect(); err != nil { // panic(err) // } - dummyUser := dj.client.Users.Find("BottleOToast") // May be nil + if dummyUser := dj.client.Users.Find("BottleOToast"); dummyUser == nil { + fmt.Printf("User does not exist") + os.Exit(1) + } // Don't judge, I used the (autogenerated) Top Tracks for United Kingdom playlist songs := map[string]string{