From 14563df61267fd5cd0a97e77007398137a193fed Mon Sep 17 00:00:00 2001 From: merchantmoh-debug Date: Thu, 7 May 2026 12:09:49 -0400 Subject: [PATCH] test: fix invalid JSON payloads in actions workflow runs tests --- github/actions_workflow_runs_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/actions_workflow_runs_test.go b/github/actions_workflow_runs_test.go index a5efb335132..9730a78944d 100644 --- a/github/actions_workflow_runs_test.go +++ b/github/actions_workflow_runs_test.go @@ -109,7 +109,7 @@ func TestActionsService_GetWorkflowRunByID(t *testing.T) { mux.HandleFunc("/repos/o/r/actions/runs/29679449", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") - fmt.Fprint(w, `{"id":399444496,"run_number":296,"created_at":"2019-01-02T15:04:05Z","updated_at":"2020-01-02T15:04:05Z"}}`) + fmt.Fprint(w, `{"id":399444496,"run_number":296,"created_at":"2019-01-02T15:04:05Z","updated_at":"2020-01-02T15:04:05Z"}`) }) ctx := t.Context() @@ -151,7 +151,7 @@ func TestActionsService_GetWorkflowRunAttempt(t *testing.T) { mux.HandleFunc("/repos/o/r/actions/runs/29679449/attempts/3", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") testFormValues(t, r, values{"exclude_pull_requests": "true"}) - fmt.Fprint(w, `{"id":399444496,"run_number":296,"run_attempt":3,"created_at":"2019-01-02T15:04:05Z","updated_at":"2020-01-02T15:04:05Z"}}`) + fmt.Fprint(w, `{"id":399444496,"run_number":296,"run_attempt":3,"created_at":"2019-01-02T15:04:05Z","updated_at":"2020-01-02T15:04:05Z"}`) }) opts := &WorkflowRunAttemptOptions{ExcludePullRequests: Ptr(true)}