Skip to content

Commit ecb82d1

Browse files
committed
Fix incorrect repo resource table test
1 parent 2bb3f88 commit ecb82d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/github/repository_resource_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ func Test_repositoryResourceContentsHandler(t *testing.T) {
9494
requestArgs map[string]any
9595
expectError string
9696
expectedResult any
97-
expectedErrMsg string
9897
}{
9998
{
10099
name: "missing owner",
@@ -233,7 +232,7 @@ func Test_repositoryResourceContentsHandler(t *testing.T) {
233232
resp, err := handler(context.TODO(), request)
234233

235234
if tc.expectError != "" {
236-
require.ErrorContains(t, err, tc.expectedErrMsg)
235+
require.ErrorContains(t, err, tc.expectError)
237236
return
238237
}
239238

0 commit comments

Comments
 (0)