From 754abb2d0dec485c66c3e314aa06753c14b7f146 Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 24 Oct 2023 13:41:30 -0700 Subject: [PATCH] Change TODO to Background. --- endpoint_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoint_test.go b/endpoint_test.go index 4a8f803..0baf8eb 100644 --- a/endpoint_test.go +++ b/endpoint_test.go @@ -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) @@ -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)