Skip to content

Commit

Permalink
Change TODO to Background.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Oct 24, 2023
1 parent f377709 commit 754abb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestNewAddWebhookEndpoint(t *testing.T) {

errFake := errors.New("failed")
// nolint:typecheck
m.On("Add", context.TODO(), "owner-val", input.internalWebook).Return(errFake)
m.On("Add", context.Background(), "owner-val", input.internalWebook).Return(errFake)
resp, err := endpoint(context.Background(), input)
assert.Nil(resp)
assert.Equal(errFake, err)
Expand All @@ -51,7 +51,7 @@ func TestGetAllWebhooksEndpoint(t *testing.T) {

respFake := []InternalWebhook{}
// nolint:typecheck
m.On("GetAll", context.TODO()).Return(respFake, nil)
m.On("GetAll", context.Background()).Return(respFake, nil)
resp, err := endpoint(context.Background(), nil)
assert.Nil(err)
assert.Equal(respFake, resp)
Expand Down

0 comments on commit 754abb2

Please sign in to comment.