Made a hacky change to use environment variable during test
This commit is contained in:
parent
1b6a52b63e
commit
7c96195dc6
6
test.go
6
test.go
|
@ -2,15 +2,15 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/layeh/gumble/gumble"
|
"github.com/layeh/gumble/gumble"
|
||||||
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func createClient(uname string) *gumble.Client {
|
func createClient(uname string) *gumble.Client {
|
||||||
return gumble.NewClient(&gumble.Config{
|
return gumble.NewClient(&gumble.Config{
|
||||||
Username: uname,
|
Username: uname,
|
||||||
Password: password,
|
Password: os.Getenv("MUMBLE_PASSWORD"),
|
||||||
Address: address + ":" + port,
|
Address: os.Getenv("MUMBLE_IP") + ":" + os.Getenv("MUMBLE_PORT")})
|
||||||
Tokens: strings.Split(accesstokens, " ")})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestYoutubeSong(t *testing.T) {
|
func TestYoutubeSong(t *testing.T) {
|
||||||
|
|
Reference in a new issue