Skip to content

Commit af96062

Browse files
author
Leonard Goodell
committed
fix: Fixed linter issue in unit test
Signed-off-by: Leonard Goodell <[email protected]>
1 parent 7d6e55d commit af96062

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/app/service_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ func TestService_SecretProvider(t *testing.T) {
967967
}
968968

969969
func TestService_AppContext(t *testing.T) {
970-
expected, _ := context.WithCancel(context.Background())
970+
expected, cancel := context.WithCancel(context.Background())
971971
sdk := Service{
972972
ctx: contextGroup{
973973
appCtx: expected,
@@ -976,4 +976,6 @@ func TestService_AppContext(t *testing.T) {
976976

977977
actual := sdk.AppContext()
978978
assert.Equal(t, expected, actual)
979+
// Linter requires use cancel function
980+
cancel()
979981
}

0 commit comments

Comments
 (0)