From 5fcec92929e571f6b06b5ca4bb39e8c3dfd0aca7 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Wed, 12 Aug 2015 20:34:32 +0100 Subject: [PATCH] Trying to work out why dummy won't connect --- circle.yml | 12 ++++++------ main.go | 2 +- test.go | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/circle.yml b/circle.yml index 09d7ee0..b2ab77f 100644 --- a/circle.yml +++ b/circle.yml @@ -12,12 +12,12 @@ dependencies: - make - make install cache_directories: - - "opus" - - "bin" - - "gopath/bin" - - "gopath/pkg" - - "gopath/src/github.com/nitrous-io" - - "gopath/src/github.com/MichaelOultram/mumbledj/.vendor" + - "~/opus" + - "~/bin" + - "~/gopath/bin" + - "~/gopath/pkg" + - "~/gopath/src/github.com/nitrous-io" + - "~/gopath/src/github.com/MichaelOultram/mumbledj/.vendor" test: override: - mumbledj -server=$MUMBLE_IP -port=$MUMBLE_PORT -username=circleci -password=$MUMBLE_PASSWORD -verbose=true -test=true: diff --git a/main.go b/main.go index ba758c4..3a2ae5f 100644 --- a/main.go +++ b/main.go @@ -249,7 +249,7 @@ func main() { if testcode { Verbose("Testing is enabled") - Test(password, address, port, accesstokens) + Test(password, address, port, strings.Split(accesstokens, " ")) } web = NewWebServer(9563) diff --git a/test.go b/test.go index 39201e7..01b4915 100644 --- a/test.go +++ b/test.go @@ -15,12 +15,12 @@ type TestSettings struct { var test TestSettings -func Test(password, ip, port, accesstokens string) { +func Test(password, ip, port string, accesstokens []string) { test = TestSettings{ password: password, ip: ip, port: port, - accesstokens: strings.Split(accesstokens, " "), + accesstokens: accesstokens, } test.testYoutubeSong() }