Update the GatewayBot test to use the bot session

This commit is contained in:
jonas747 2017-07-10 18:36:19 +02:00
parent 83e18aad7d
commit 31075bc148

View file

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