From 367594be1fe81fa4f16e001c51f4d0c9a1ba1029 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Mon, 11 Jan 2016 14:33:50 -0600 Subject: [PATCH] Testing Close(), store token from Email/Pass New if ran. --- discord_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/discord_test.go b/discord_test.go index 59f9ebd..6785aac 100644 --- a/discord_test.go +++ b/discord_test.go @@ -136,8 +136,13 @@ func TestNewUserPass(t *testing.T) { t.Log("Successfully connected to Discord via New(user,pass).") dg = d + if envToken == "" { + envToken = dg.Token + } +} - // Not testing yet. +func TestClose(t *testing.T) { + dg.Close() } // TestNewToken tests the New() function with a Token. This should return