Bruce Marriner před 8 roky
rodič
revize
2aa94c20ae
1 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. 2 4
      discord_test.go

+ 2 - 4
discord_test.go

@@ -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