Browse Source

Update the GatewayBot test to use the bot session

jonas747 7 years ago
parent
commit
31075bc148
1 changed files with 3 additions and 3 deletions
  1. 3 3
      restapi_test.go

+ 3 - 3
restapi_test.go

@@ -168,10 +168,10 @@ func TestGateway(t *testing.T) {
 
 func TestGatewayBot(t *testing.T) {
 
-	if dg == nil {
-		t.Skip("Skipping, dg not set.")
+	if dgBot == nil {
+		t.Skip("Skipping, dgBot not set.")
 	}
-	_, err := dg.GatewayBot()
+	_, err := dgBot.GatewayBot()
 	if err != nil {
 		t.Errorf("GatewayBot() returned error: %+v", err)
 	}