Skip to content

Commit

Permalink
Fix linting errors (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo authored Feb 15, 2025
1 parent fb98ace commit 2c817a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/cli/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestServerCommand(t *testing.T) {

testRSAPrivateKeyString, _ := keyutil.TestGenerateRSAPrivateKey(t)

ctx := logging.WithLogger(context.Background(), logging.TestLogger(t))
ctx := logging.WithLogger(t.Context(), logging.TestLogger(t))

fakeGitHub := func() *httptest.Server {
mux := http.NewServeMux()
Expand Down
4 changes: 2 additions & 2 deletions pkg/plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func TestValidate(t *testing.T) {
}

for _, tc := range cases {
ctx := context.Background()
ctx := t.Context()

t.Run(tc.name, func(t *testing.T) {
t.Parallel()
Expand All @@ -148,7 +148,7 @@ func TestValidate(t *testing.T) {

func TestGetUIData(t *testing.T) {
t.Parallel()
ctx := context.Background()
ctx := t.Context()

uiData := &jvspb.UIData{
DisplayName: testGitHubPluginDisplayName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/plugin/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package plugin

import (
"context"
"crypto/tls"
"errors"
"fmt"
Expand Down Expand Up @@ -121,7 +120,7 @@ func TestMatchIssue(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

ctx := context.Background()
ctx := t.Context()

fakeGitHub := func() *httptest.Server {
mux := http.NewServeMux()
Expand Down

0 comments on commit 2c817a8

Please sign in to comment.