From ee8578119fac91fbcca701f1aea797abab44dfb0 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Wed, 12 Aug 2015 20:39:49 +0100 Subject: [PATCH] Fixing build errors --- circle.yml | 8 ++++---- test.go | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/circle.yml b/circle.yml index b2ab77f..f60f592 100644 --- a/circle.yml +++ b/circle.yml @@ -14,10 +14,10 @@ dependencies: cache_directories: - "~/opus" - "~/bin" - - "~/gopath/bin" - - "~/gopath/pkg" - - "~/gopath/src/github.com/nitrous-io" - - "~/gopath/src/github.com/MichaelOultram/mumbledj/.vendor" + - "/usr/local/go/bin" + - "/usr/local/go/pkg" + - "/usr/local/go/src/github.com/nitrous-io" + - "~/.vendor" test: override: - mumbledj -server=$MUMBLE_IP -port=$MUMBLE_PORT -username=circleci -password=$MUMBLE_PASSWORD -verbose=true -test=true: diff --git a/test.go b/test.go index 01b4915..8574e79 100644 --- a/test.go +++ b/test.go @@ -36,8 +36,9 @@ func (t TestSettings) createClient(uname string) *gumble.Client { func (t TestSettings) testYoutubeSong() { dummyClient := t.createClient("dummy") - dummyClient.Connect() - time.Sleep(time.Second * 5) // Give dummy time to connect + if err := dummyClient.Connect(); err != nil { + panic(err) + } dummyUser := dj.client.Users.Find("dummy") // May be nil // Don't judge, I used the (autogenerated) Top Tracks for United Kingdom playlist