Added test back.

This commit is contained in:
Bruce Marriner 2016-04-25 13:27:34 -05:00
parent 23dc063228
commit 2aa94c20ae

View file

@ -15,8 +15,8 @@ var (
envToken = os.Getenv("DG_TOKEN") // Token to use when authenticating
envEmail = os.Getenv("DG_EMAIL") // Email to use when authenticating
envPassword = os.Getenv("DG_PASSWORD") // Password to use when authenticating
// envGuild = os.Getenv("DG_GUILD") // Guild ID to use for tests
envChannel = os.Getenv("DG_CHANNEL") // Channel ID to use for tests
envGuild = os.Getenv("DG_GUILD") // Guild ID to use for tests
envChannel = os.Getenv("DG_CHANNEL") // Channel ID to use for tests
// envUser = os.Getenv("DG_USER") // User ID to use for tests
envAdmin = os.Getenv("DG_ADMIN") // User ID of admin user to use for tests
)
@ -189,7 +189,6 @@ func TestNewUserPassToken(t *testing.T) {
}
}
/*
func TestOpenClose(t *testing.T) {
if envToken == "" {
t.Skip("Skipping TestClose, DG_TOKEN not set")
@ -226,7 +225,6 @@ func TestOpenClose(t *testing.T) {
t.Fatalf("TestClose, d.Close failed: %+v", err)
}
}
*/
func TestAddHandler(t *testing.T) {
testHandlerCalled := 0