Testing Close(), store token from Email/Pass New if ran.

This commit is contained in:
Bruce Marriner 2016-01-11 14:33:50 -06:00
parent 2469147d8a
commit 367594be1f

View file

@ -136,8 +136,13 @@ func TestNewUserPass(t *testing.T) {
t.Log("Successfully connected to Discord via New(user,pass).") t.Log("Successfully connected to Discord via New(user,pass).")
dg = d 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 // TestNewToken tests the New() function with a Token. This should return