Fix crash in tests

pull/281/head
Sergey Parshukov 6 years ago
parent b008ebe59e
commit d828c543c9
No known key found for this signature in database
GPG Key ID: 9D0FB8D5E702923A
  1. 4
      bot_test.go

@ -27,12 +27,12 @@ const (
func getBot(t *testing.T) (*tgbotapi.BotAPI, error) {
bot, err := tgbotapi.NewBotAPI(TestToken)
bot.Debug = true
if err != nil {
t.Error(err)
t.Fail()
t.FailNow()
}
bot.Debug = true
return bot, err
}