Skip to content

Commit 699ac3c

Browse files
committed
Fix test
1 parent cf6d944 commit 699ac3c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

pkg/github/helper_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const (
3939
GetReposSubscriptionByOwnerByRepo = "GET /repos/{owner}/{repo}/subscription"
4040
PutReposSubscriptionByOwnerByRepo = "PUT /repos/{owner}/{repo}/subscription"
4141
DeleteReposSubscriptionByOwnerByRepo = "DELETE /repos/{owner}/{repo}/subscription"
42+
ListCollaborators = "GET /repos/{owner}/{repo}/collaborators"
4243

4344
// Git endpoints
4445
GetReposGitTreesByOwnerByRepoByTree = "GET /repos/{owner}/{repo}/git/trees/{tree}"

pkg/github/repositories_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4416,7 +4416,7 @@ func Test_ListRepositoryCollaborators(t *testing.T) {
44164416
},
44174417
mockResponses: []MockBackendOption{
44184418
WithRequestMatch(
4419-
GetReposCollaboratorsByOwnerByRepo,
4419+
ListCollaborators,
44204420
mockCollaborators,
44214421
),
44224422
},
@@ -4430,7 +4430,7 @@ func Test_ListRepositoryCollaborators(t *testing.T) {
44304430
},
44314431
mockResponses: []MockBackendOption{
44324432
WithRequestMatch(
4433-
GetReposCollaboratorsByOwnerByRepo,
4433+
ListCollaborators,
44344434
mockCollaborators,
44354435
),
44364436
},
@@ -4459,7 +4459,7 @@ func Test_ListRepositoryCollaborators(t *testing.T) {
44594459
},
44604460
mockResponses: []MockBackendOption{
44614461
WithRequestMatch(
4462-
GetReposCollaboratorsByOwnerByRepo,
4462+
ListCollaborators,
44634463
[]*github.User{},
44644464
),
44654465
},

0 commit comments

Comments
 (0)