Skip to content

Commit 5c3fa31

Browse files
test: Fix invalid JSON payloads in actions workflow runs tests (#4197)
1 parent 9c0ad62 commit 5c3fa31

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github/actions_workflow_runs_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func TestActionsService_GetWorkflowRunByID(t *testing.T) {
109109

110110
mux.HandleFunc("/repos/o/r/actions/runs/29679449", func(w http.ResponseWriter, r *http.Request) {
111111
testMethod(t, r, "GET")
112-
fmt.Fprint(w, `{"id":399444496,"run_number":296,"created_at":"2019-01-02T15:04:05Z","updated_at":"2020-01-02T15:04:05Z"}}`)
112+
fmt.Fprint(w, `{"id":399444496,"run_number":296,"created_at":"2019-01-02T15:04:05Z","updated_at":"2020-01-02T15:04:05Z"}`)
113113
})
114114

115115
ctx := t.Context()
@@ -151,7 +151,7 @@ func TestActionsService_GetWorkflowRunAttempt(t *testing.T) {
151151
mux.HandleFunc("/repos/o/r/actions/runs/29679449/attempts/3", func(w http.ResponseWriter, r *http.Request) {
152152
testMethod(t, r, "GET")
153153
testFormValues(t, r, values{"exclude_pull_requests": "true"})
154-
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"}}`)
154+
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"}`)
155155
})
156156

157157
opts := &WorkflowRunAttemptOptions{ExcludePullRequests: Ptr(true)}

0 commit comments

Comments
 (0)