@@ -557,16 +557,15 @@ func TestRunnerGroup_Marshal(t *testing.T) {
557557 "runners_url": "r",
558558 "inherited": true,
559559 "allows_public_repositories": true,
560- "restricted_to_workflows": false,
561- "selected_workflows": []
560+ "restricted_to_workflows": false
562561 }`
563562
564563 testJSONMarshal (t , u , want )
565564}
566565
567566func TestRunnerGroups_Marshal (t * testing.T ) {
568567 t .Parallel ()
569- testJSONMarshal (t , & RunnerGroups {}, "{}" )
568+ testJSONMarshal (t , & RunnerGroups {}, `{"runner_groups": null, "total_count": 0}` )
570569
571570 u := & RunnerGroups {
572571 TotalCount : int (1 ),
@@ -597,8 +596,7 @@ func TestRunnerGroups_Marshal(t *testing.T) {
597596 "runners_url": "r",
598597 "inherited": true,
599598 "allows_public_repositories": true,
600- "restricted_to_workflows": false,
601- "selected_workflows": []
599+ "restricted_to_workflows": false
602600 }]
603601 }`
604602
@@ -648,16 +646,15 @@ func TestUpdateRunnerGroupRequest_Marshal(t *testing.T) {
648646 "name": "n",
649647 "visibility": "v",
650648 "allows_public_repositories": true,
651- "restricted_to_workflows": false,
652- "selected_workflows": []
649+ "restricted_to_workflows": false
653650 }`
654651
655652 testJSONMarshal (t , u , want )
656653}
657654
658655func TestSetRepoAccessRunnerGroupRequest_Marshal (t * testing.T ) {
659656 t .Parallel ()
660- testJSONMarshal (t , & SetRepoAccessRunnerGroupRequest {}, "{}" )
657+ testJSONMarshal (t , & SetRepoAccessRunnerGroupRequest {}, `{"selected_repository_ids": null}` )
661658
662659 u := & SetRepoAccessRunnerGroupRequest {
663660 SelectedRepositoryIDs : []int64 {1 },
@@ -672,7 +669,7 @@ func TestSetRepoAccessRunnerGroupRequest_Marshal(t *testing.T) {
672669
673670func TestSetRunnerGroupRunnersRequest_Marshal (t * testing.T ) {
674671 t .Parallel ()
675- testJSONMarshal (t , & SetRunnerGroupRunnersRequest {}, "{}" )
672+ testJSONMarshal (t , & SetRunnerGroupRunnersRequest {}, `{"runners": null}` )
676673
677674 u := & SetRunnerGroupRunnersRequest {
678675 Runners : []int64 {1 },
0 commit comments