From 0383202304ae614dd7f093b2d6c54199d92f58d8 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Sat, 15 Aug 2015 15:57:55 +0100 Subject: [PATCH] Getting tests to use dummy client --- test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test.go b/test.go index 2258187..0e203c8 100644 --- a/test.go +++ b/test.go @@ -39,14 +39,14 @@ func (t TestSettings) createClient(uname string) *gumble.Client { } func (t TestSettings) testYoutubeSong() { - // dummyClient := t.createClient("dummy") - // if err := dummyClient.Connect(); err != nil { - // panic(err) - // } + dummyClient := t.createClient("dummy") + if err := dummyClient.Connect(); err != nil { + panic(err) + } dj.client.Request(gumble.RequestUserList) time.Sleep(time.Second * 5) - dummyUser := dj.client.Users.Find("BottleOToast") + dummyUser := dj.client.Users.Find("dummy") if dummyUser == nil { fmt.Printf("User does not exist, printing users\n") for _, user := range dj.client.Users { @@ -76,10 +76,10 @@ func (t TestSettings) testYoutubeSong() { fmt.Printf("For: %s; Expected: %s; Got: %s\n", url, title, dj.queue.CurrentSong().Title()) } - time.Sleep(time.Second * 5) + time.Sleep(time.Second * 10) skip(dummyUser, false, false) } os.Exit(0) - //dummyClient.Disconnect() + dummyClient.Disconnect() }