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: cache_directories:
- "~/opus" - "~/opus"
- "~/bin" - "~/bin"
- "~/gopath/bin" - "/usr/local/go/bin"
- "~/gopath/pkg" - "/usr/local/go/pkg"
- "~/gopath/src/github.com/nitrous-io" - "/usr/local/go/src/github.com/nitrous-io"
- "~/gopath/src/github.com/MichaelOultram/mumbledj/.vendor" - "~/.vendor"
test: test:
override: override:
- mumbledj -server=$MUMBLE_IP -port=$MUMBLE_PORT -username=circleci -password=$MUMBLE_PASSWORD -verbose=true -test=true: - 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() { func (t TestSettings) testYoutubeSong() {
dummyClient := t.createClient("dummy") dummyClient := t.createClient("dummy")
dummyClient.Connect() if err := dummyClient.Connect(); err != nil {
time.Sleep(time.Second * 5) // Give dummy time to connect panic(err)
}
dummyUser := dj.client.Users.Find("dummy") // May be nil dummyUser := dj.client.Users.Find("dummy") // May be nil
// 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