@@ -17,6 +17,7 @@ import (
17
17
)
18
18
19
19
func TestActionsService_ListArtifacts (t * testing.T ) {
20
+ t .Parallel ()
20
21
client , mux , _ := setup (t )
21
22
22
23
mux .HandleFunc ("/repos/o/r/actions/artifacts" , func (w http.ResponseWriter , r * http.Request ) {
@@ -58,6 +59,7 @@ func TestActionsService_ListArtifacts(t *testing.T) {
58
59
}
59
60
60
61
func TestActionsService_ListArtifacts_invalidOwner (t * testing.T ) {
62
+ t .Parallel ()
61
63
client , _ , _ := setup (t )
62
64
63
65
ctx := context .Background ()
@@ -66,6 +68,7 @@ func TestActionsService_ListArtifacts_invalidOwner(t *testing.T) {
66
68
}
67
69
68
70
func TestActionsService_ListArtifacts_invalidRepo (t * testing.T ) {
71
+ t .Parallel ()
69
72
client , _ , _ := setup (t )
70
73
71
74
ctx := context .Background ()
@@ -74,6 +77,7 @@ func TestActionsService_ListArtifacts_invalidRepo(t *testing.T) {
74
77
}
75
78
76
79
func TestActionsService_ListArtifacts_notFound (t * testing.T ) {
80
+ t .Parallel ()
77
81
client , mux , _ := setup (t )
78
82
79
83
mux .HandleFunc ("/repos/o/r/actions/artifacts" , func (w http.ResponseWriter , r * http.Request ) {
@@ -95,6 +99,7 @@ func TestActionsService_ListArtifacts_notFound(t *testing.T) {
95
99
}
96
100
97
101
func TestActionsService_ListWorkflowRunArtifacts (t * testing.T ) {
102
+ t .Parallel ()
98
103
client , mux , _ := setup (t )
99
104
100
105
mux .HandleFunc ("/repos/o/r/actions/runs/1/artifacts" , func (w http.ResponseWriter , r * http.Request ) {
@@ -136,6 +141,7 @@ func TestActionsService_ListWorkflowRunArtifacts(t *testing.T) {
136
141
}
137
142
138
143
func TestActionsService_ListWorkflowRunArtifacts_invalidOwner (t * testing.T ) {
144
+ t .Parallel ()
139
145
client , _ , _ := setup (t )
140
146
141
147
ctx := context .Background ()
@@ -144,6 +150,7 @@ func TestActionsService_ListWorkflowRunArtifacts_invalidOwner(t *testing.T) {
144
150
}
145
151
146
152
func TestActionsService_ListWorkflowRunArtifacts_invalidRepo (t * testing.T ) {
153
+ t .Parallel ()
147
154
client , _ , _ := setup (t )
148
155
149
156
ctx := context .Background ()
@@ -152,6 +159,7 @@ func TestActionsService_ListWorkflowRunArtifacts_invalidRepo(t *testing.T) {
152
159
}
153
160
154
161
func TestActionsService_ListWorkflowRunArtifacts_notFound (t * testing.T ) {
162
+ t .Parallel ()
155
163
client , mux , _ := setup (t )
156
164
157
165
mux .HandleFunc ("/repos/o/r/actions/runs/1/artifacts" , func (w http.ResponseWriter , r * http.Request ) {
@@ -173,6 +181,7 @@ func TestActionsService_ListWorkflowRunArtifacts_notFound(t *testing.T) {
173
181
}
174
182
175
183
func TestActionsService_GetArtifact (t * testing.T ) {
184
+ t .Parallel ()
176
185
client , mux , _ := setup (t )
177
186
178
187
mux .HandleFunc ("/repos/o/r/actions/artifacts/1" , func (w http.ResponseWriter , r * http.Request ) {
@@ -219,6 +228,7 @@ func TestActionsService_GetArtifact(t *testing.T) {
219
228
}
220
229
221
230
func TestActionsService_GetArtifact_invalidOwner (t * testing.T ) {
231
+ t .Parallel ()
222
232
client , _ , _ := setup (t )
223
233
224
234
ctx := context .Background ()
@@ -227,6 +237,7 @@ func TestActionsService_GetArtifact_invalidOwner(t *testing.T) {
227
237
}
228
238
229
239
func TestActionsService_GetArtifact_invalidRepo (t * testing.T ) {
240
+ t .Parallel ()
230
241
client , _ , _ := setup (t )
231
242
232
243
ctx := context .Background ()
@@ -235,6 +246,7 @@ func TestActionsService_GetArtifact_invalidRepo(t *testing.T) {
235
246
}
236
247
237
248
func TestActionsService_GetArtifact_notFound (t * testing.T ) {
249
+ t .Parallel ()
238
250
client , mux , _ := setup (t )
239
251
240
252
mux .HandleFunc ("/repos/o/r/actions/artifacts/1" , func (w http.ResponseWriter , r * http.Request ) {
@@ -256,6 +268,7 @@ func TestActionsService_GetArtifact_notFound(t *testing.T) {
256
268
}
257
269
258
270
func TestActionsService_DownloadArtifact (t * testing.T ) {
271
+ t .Parallel ()
259
272
client , mux , _ := setup (t )
260
273
261
274
mux .HandleFunc ("/repos/o/r/actions/artifacts/1/zip" , func (w http.ResponseWriter , r * http.Request ) {
@@ -294,6 +307,7 @@ func TestActionsService_DownloadArtifact(t *testing.T) {
294
307
}
295
308
296
309
func TestActionsService_DownloadArtifact_invalidOwner (t * testing.T ) {
310
+ t .Parallel ()
297
311
client , _ , _ := setup (t )
298
312
299
313
ctx := context .Background ()
@@ -302,6 +316,7 @@ func TestActionsService_DownloadArtifact_invalidOwner(t *testing.T) {
302
316
}
303
317
304
318
func TestActionsService_DownloadArtifact_invalidRepo (t * testing.T ) {
319
+ t .Parallel ()
305
320
client , _ , _ := setup (t )
306
321
307
322
ctx := context .Background ()
@@ -310,6 +325,7 @@ func TestActionsService_DownloadArtifact_invalidRepo(t *testing.T) {
310
325
}
311
326
312
327
func TestActionsService_DownloadArtifact_StatusMovedPermanently_dontFollowRedirects (t * testing.T ) {
328
+ t .Parallel ()
313
329
client , mux , _ := setup (t )
314
330
315
331
mux .HandleFunc ("/repos/o/r/actions/artifacts/1/zip" , func (w http.ResponseWriter , r * http.Request ) {
@@ -325,6 +341,7 @@ func TestActionsService_DownloadArtifact_StatusMovedPermanently_dontFollowRedire
325
341
}
326
342
327
343
func TestActionsService_DownloadArtifact_StatusMovedPermanently_followRedirects (t * testing.T ) {
344
+ t .Parallel ()
328
345
client , mux , serverURL := setup (t )
329
346
330
347
mux .HandleFunc ("/repos/o/r/actions/artifacts/1/zip" , func (w http.ResponseWriter , r * http.Request ) {
@@ -352,6 +369,7 @@ func TestActionsService_DownloadArtifact_StatusMovedPermanently_followRedirects(
352
369
}
353
370
354
371
func TestActionsService_DeleteArtifact (t * testing.T ) {
372
+ t .Parallel ()
355
373
client , mux , _ := setup (t )
356
374
357
375
mux .HandleFunc ("/repos/o/r/actions/artifacts/1" , func (w http.ResponseWriter , r * http.Request ) {
@@ -376,6 +394,7 @@ func TestActionsService_DeleteArtifact(t *testing.T) {
376
394
}
377
395
378
396
func TestActionsService_DeleteArtifact_invalidOwner (t * testing.T ) {
397
+ t .Parallel ()
379
398
client , _ , _ := setup (t )
380
399
381
400
ctx := context .Background ()
@@ -384,6 +403,7 @@ func TestActionsService_DeleteArtifact_invalidOwner(t *testing.T) {
384
403
}
385
404
386
405
func TestActionsService_DeleteArtifact_invalidRepo (t * testing.T ) {
406
+ t .Parallel ()
387
407
client , _ , _ := setup (t )
388
408
389
409
ctx := context .Background ()
@@ -392,6 +412,7 @@ func TestActionsService_DeleteArtifact_invalidRepo(t *testing.T) {
392
412
}
393
413
394
414
func TestActionsService_DeleteArtifact_notFound (t * testing.T ) {
415
+ t .Parallel ()
395
416
client , mux , _ := setup (t )
396
417
397
418
mux .HandleFunc ("/repos/o/r/actions/artifacts/1" , func (w http.ResponseWriter , r * http.Request ) {
@@ -410,6 +431,7 @@ func TestActionsService_DeleteArtifact_notFound(t *testing.T) {
410
431
}
411
432
412
433
func TestArtifact_Marshal (t * testing.T ) {
434
+ t .Parallel ()
413
435
testJSONMarshal (t , & Artifact {}, "{}" )
414
436
415
437
u := & Artifact {
@@ -456,6 +478,7 @@ func TestArtifact_Marshal(t *testing.T) {
456
478
}
457
479
458
480
func TestArtifactList_Marshal (t * testing.T ) {
481
+ t .Parallel ()
459
482
testJSONMarshal (t , & ArtifactList {}, "{}" )
460
483
461
484
u := & ArtifactList {
0 commit comments