Skip to content

Commit

Permalink
fix: Fixed linter issue in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
  • Loading branch information
Leonard Goodell committed Jun 28, 2023
1 parent 7d6e55d commit af96062
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/app/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ func TestService_SecretProvider(t *testing.T) {
}

func TestService_AppContext(t *testing.T) {
expected, _ := context.WithCancel(context.Background())
expected, cancel := context.WithCancel(context.Background())
sdk := Service{
ctx: contextGroup{
appCtx: expected,
Expand All @@ -976,4 +976,6 @@ func TestService_AppContext(t *testing.T) {

actual := sdk.AppContext()
assert.Equal(t, expected, actual)
// Linter requires use cancel function
cancel()
}

0 comments on commit af96062

Please sign in to comment.