From 31075bc1489843202ebd039a5e041c5b014b00ed Mon Sep 17 00:00:00 2001 From: jonas747 Date: Mon, 10 Jul 2017 18:36:19 +0200 Subject: [PATCH] Update the GatewayBot test to use the bot session --- restapi_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/restapi_test.go b/restapi_test.go index cf64612..7aa4e60 100644 --- a/restapi_test.go +++ b/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) }