Skip to content

Commit

Permalink
Fix func in testBadOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kabesan committed Dec 7, 2021
1 parent 62b5351 commit c0a7d7d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions github/teams_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,7 @@ func TestTeamsService_GetExternalGroup(t *testing.T) {

const methodName = "GetExternalGroup"
testBadOptions(t, methodName, func() (err error) {
_, _, err = client.Teams.GetExternalGroup(ctx, "", -1)
_, _, err = client.Teams.GetExternalGroup(ctx, "\n", -1)
return err
})

Expand Down Expand Up @@ -1900,12 +1900,12 @@ func TestTeamsService_ListExternalGroups(t *testing.T) {

const methodName = "ListExternalGroups"
testBadOptions(t, methodName, func() (err error) {
_, _, err = client.Teams.ListExternalGroups(ctx, "", nil)
_, _, err = client.Teams.ListExternalGroups(ctx, "\n", opts)
return err
})

testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
got, resp, err := client.Teams.ListExternalGroups(ctx, "o", nil)
got, resp, err := client.Teams.ListExternalGroups(ctx, "o", opts)
if got != nil {
t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got)
}
Expand Down Expand Up @@ -2016,7 +2016,7 @@ func TestTeamsService_UpdateConnectedExternalGroup(t *testing.T) {

const methodName = "UpdateConnectedExternalGroup"
testBadOptions(t, methodName, func() (err error) {
_, _, err = client.Teams.UpdateConnectedExternalGroup(ctx, "", "", body)
_, _, err = client.Teams.UpdateConnectedExternalGroup(ctx, "\n", "\n", body)
return err
})

Expand Down Expand Up @@ -2071,7 +2071,7 @@ func TestTeamsService_RemoveConnectedExternalGroup(t *testing.T) {

const methodName = "RemoveConnectedExternalGroup"
testBadOptions(t, methodName, func() (err error) {
_, err = client.Teams.RemoveConnectedExternalGroup(ctx, "", "")
_, err = client.Teams.RemoveConnectedExternalGroup(ctx, "\n", "\n")
return err
})

Expand Down

0 comments on commit c0a7d7d

Please sign in to comment.