Fixing build errors

This commit is contained in:
MichaelOultram 2015-08-12 20:39:49 +01:00
parent 5fcec92929
commit ee8578119f
2 changed files with 7 additions and 6 deletions

View file

@ -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:

View file

@ -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