Skip to content

Commit f58e59b

Browse files
lpcoxCopilot
andcommitted
Fix lint: replace removed lookupEnrichmentToken with envutil.LookupGitHubToken
Commit 5c9c6c2 inlined lookupEnrichmentToken in unified.go but left the test referencing the deleted function. Update the test to call envutil.LookupGitHubToken() directly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1418247 commit f58e59b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

internal/server/collaborator_permission_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"net/http/httptest"
99
"testing"
1010

11+
"github.com/github/gh-aw-mcpg/internal/envutil"
1112
"github.com/stretchr/testify/assert"
1213
"github.com/stretchr/testify/require"
1314
)
@@ -287,7 +288,7 @@ func TestLookupEnrichmentToken(t *testing.T) {
287288
for k, v := range tc.envVars {
288289
t.Setenv(k, v)
289290
}
290-
result := lookupEnrichmentToken()
291+
result := envutil.LookupGitHubToken()
291292
assert.Equal(t, tc.expected, result)
292293
})
293294
}

internal/strutil/truncate_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ func TestTruncateWithSuffix(t *testing.T) {
149149

150150
func TestTruncateRunes(t *testing.T) {
151151
tests := []struct {
152-
name string
153-
input string
154-
maxRunes int
155-
expected string
152+
name string
153+
input string
154+
maxRunes int
155+
expected string
156156
}{
157157
{
158158
name: "ASCII string within limit",

0 commit comments

Comments
 (0)