We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d6e55d commit af96062Copy full SHA for af96062
internal/app/service_test.go
@@ -967,7 +967,7 @@ func TestService_SecretProvider(t *testing.T) {
967
}
968
969
func TestService_AppContext(t *testing.T) {
970
- expected, _ := context.WithCancel(context.Background())
+ expected, cancel := context.WithCancel(context.Background())
971
sdk := Service{
972
ctx: contextGroup{
973
appCtx: expected,
@@ -976,4 +976,6 @@ func TestService_AppContext(t *testing.T) {
976
977
actual := sdk.AppContext()
978
assert.Equal(t, expected, actual)
979
+ // Linter requires use cancel function
980
+ cancel()
981
0 commit comments