Fixing build errors
This commit is contained in:
parent
f8d9100e93
commit
a5fd345959
6
test.go
6
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{
|
||||
|
|
Reference in a new issue