diff --git a/github/enterprise_actions_runners_test.go b/github/enterprise_actions_runners_test.go index a1d3f17a895..36b2aaefe89 100644 --- a/github/enterprise_actions_runners_test.go +++ b/github/enterprise_actions_runners_test.go @@ -24,7 +24,10 @@ func TestEnterpriseService_GenerateEnterpriseJITConfig(t *testing.T) { mux.HandleFunc("/enterprises/o/actions/runners/generate-jitconfig", func(w http.ResponseWriter, r *http.Request) { v := new(GenerateJITConfigRequest) - json.NewDecoder(r.Body).Decode(v) + err := json.NewDecoder(r.Body).Decode(v) + if err != nil { + t.Errorf("Request body decode failed: %v", err) + } testMethod(t, r, "POST") if !cmp.Equal(v, input) {