Trying to work out why dummy won't connect
This commit is contained in:
parent
c6c58c4d11
commit
5fcec92929
12
circle.yml
12
circle.yml
|
@ -12,12 +12,12 @@ dependencies:
|
||||||
- make
|
- make
|
||||||
- make install
|
- make install
|
||||||
cache_directories:
|
cache_directories:
|
||||||
- "opus"
|
- "~/opus"
|
||||||
- "bin"
|
- "~/bin"
|
||||||
- "gopath/bin"
|
- "~/gopath/bin"
|
||||||
- "gopath/pkg"
|
- "~/gopath/pkg"
|
||||||
- "gopath/src/github.com/nitrous-io"
|
- "~/gopath/src/github.com/nitrous-io"
|
||||||
- "gopath/src/github.com/MichaelOultram/mumbledj/.vendor"
|
- "~/gopath/src/github.com/MichaelOultram/mumbledj/.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:
|
||||||
|
|
2
main.go
2
main.go
|
@ -249,7 +249,7 @@ func main() {
|
||||||
|
|
||||||
if testcode {
|
if testcode {
|
||||||
Verbose("Testing is enabled")
|
Verbose("Testing is enabled")
|
||||||
Test(password, address, port, accesstokens)
|
Test(password, address, port, strings.Split(accesstokens, " "))
|
||||||
}
|
}
|
||||||
|
|
||||||
web = NewWebServer(9563)
|
web = NewWebServer(9563)
|
||||||
|
|
4
test.go
4
test.go
|
@ -15,12 +15,12 @@ type TestSettings struct {
|
||||||
|
|
||||||
var test TestSettings
|
var test TestSettings
|
||||||
|
|
||||||
func Test(password, ip, port, accesstokens string) {
|
func Test(password, ip, port string, accesstokens []string) {
|
||||||
test = TestSettings{
|
test = TestSettings{
|
||||||
password: password,
|
password: password,
|
||||||
ip: ip,
|
ip: ip,
|
||||||
port: port,
|
port: port,
|
||||||
accesstokens: strings.Split(accesstokens, " "),
|
accesstokens: accesstokens,
|
||||||
}
|
}
|
||||||
test.testYoutubeSong()
|
test.testYoutubeSong()
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue