|
@@ -15,8 +15,8 @@ var (
|
|
envToken = os.Getenv("DG_TOKEN") // Token to use when authenticating
|
|
envToken = os.Getenv("DG_TOKEN") // Token to use when authenticating
|
|
envEmail = os.Getenv("DG_EMAIL") // Email to use when authenticating
|
|
envEmail = os.Getenv("DG_EMAIL") // Email to use when authenticating
|
|
envPassword = os.Getenv("DG_PASSWORD") // Password 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
|
|
// 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
|
|
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) {
|
|
func TestOpenClose(t *testing.T) {
|
|
if envToken == "" {
|
|
if envToken == "" {
|
|
t.Skip("Skipping TestClose, DG_TOKEN not set")
|
|
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)
|
|
t.Fatalf("TestClose, d.Close failed: %+v", err)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-*/
|
|
|
|
|
|
|
|
func TestAddHandler(t *testing.T) {
|
|
func TestAddHandler(t *testing.T) {
|
|
testHandlerCalled := 0
|
|
testHandlerCalled := 0
|