Skip to content

Commit 4756394

Browse files
test: Ensure bypass_actors serializes as an empty array when clearing ruleset bypass actors (#3734)
1 parent 1b53270 commit 4756394

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

github/repos_rules_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ func TestRepositoriesService_UpdateRulesetClearBypassActor(t *testing.T) {
461461

462462
mux.HandleFunc("/repos/o/repo/rulesets/42", func(w http.ResponseWriter, r *http.Request) {
463463
testMethod(t, r, "PUT")
464+
testBody(t, r, `{"bypass_actors":[]}`+"\n")
464465
fmt.Fprint(w, `{
465466
"id": 42,
466467
"name": "ruleset",

0 commit comments

Comments
 (0)