Skip to content

Commit

Permalink
Fixed tests & linters
Browse files Browse the repository at this point in the history
  • Loading branch information
mymmrac committed May 3, 2023
1 parent 8b1f708 commit 0c6b007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions long_polling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ func TestWithLongPollingContext(t *testing.T) {
})

t.Run("error", func(t *testing.T) {
//nolint:staticcheck
err := WithLongPollingContext(nil)(lCtx)
assert.Error(t, err)
})
Expand Down
2 changes: 2 additions & 0 deletions webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ func TestBot_UpdatesViaWebhook(t *testing.T) {

update, ok := <-updates
require.True(t, ok)
update.ctx = nil

assert.Equal(t, expectedUpdate, update)

Expand Down Expand Up @@ -355,6 +356,7 @@ func TestWithWebhookContext(t *testing.T) {
})

t.Run("error", func(t *testing.T) {
//nolint:staticcheck
err := WithWebhookContext(nil)(nil, wCtx)
assert.Error(t, err)
})
Expand Down

0 comments on commit 0c6b007

Please sign in to comment.