Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
onrik committed Aug 12, 2024
1 parent 2927401 commit bb18baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (s *BotTestSuite) TestErrorsHandle() {

err := s.bot.get("method", nil, nil)
s.Require().NotNil(err)
s.True(strings.Contains(err.Error(), "Decode response error"))
s.True(strings.Contains(err.Error(), "decode response error"))

httpmock.Reset()
s.registerResponse("method", nil, `{"ok":false, "error_code": 111}`)
Expand All @@ -164,7 +164,7 @@ func (s *BotTestSuite) TestErrorsHandle() {
var result int
err = s.bot.get("method", nil, &result)
s.Require().NotNil(err)
s.True(strings.Contains(err.Error(), "Decode result error"))
s.True(strings.Contains(err.Error(), "decode result error"))
}

func (s *BotTestSuite) TestBuildUrl() {
Expand Down

0 comments on commit bb18baa

Please sign in to comment.