From 7c96195dc6345fe06c888ccf8c6104c6564b4866 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Mon, 10 Aug 2015 00:50:37 +0100 Subject: [PATCH] Made a hacky change to use environment variable during test --- test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.go b/test.go index 889bdd0..403adbe 100644 --- a/test.go +++ b/test.go @@ -2,15 +2,15 @@ package main import ( "github.com/layeh/gumble/gumble" + "os" "testing" ) func createClient(uname string) *gumble.Client { return gumble.NewClient(&gumble.Config{ Username: uname, - Password: password, - Address: address + ":" + port, - Tokens: strings.Split(accesstokens, " ")}) + Password: os.Getenv("MUMBLE_PASSWORD"), + Address: os.Getenv("MUMBLE_IP") + ":" + os.Getenv("MUMBLE_PORT")}) } func TestYoutubeSong(t *testing.T) {