@@ -277,7 +277,7 @@ func TestActionsSerivice_DownloadArtifact(t *testing.T) {
277277 })
278278
279279 ctx := context .Background ()
280- url , resp , err := client .Actions .DownloadArtifact (ctx , "o" , "r" , 1 , true )
280+ url , resp , err := client .Actions .DownloadArtifact (ctx , "o" , "r" , 1 , 1 )
281281 if err != nil {
282282 t .Errorf ("Actions.DownloadArtifact returned error: %v" , err )
283283 }
@@ -292,7 +292,7 @@ func TestActionsSerivice_DownloadArtifact(t *testing.T) {
292292
293293 const methodName = "DownloadArtifact"
294294 testBadOptions (t , methodName , func () (err error ) {
295- _ , _ , err = client .Actions .DownloadArtifact (ctx , "\n " , "\n " , - 1 , true )
295+ _ , _ , err = client .Actions .DownloadArtifact (ctx , "\n " , "\n " , - 1 , 1 )
296296 return err
297297 })
298298
@@ -301,7 +301,7 @@ func TestActionsSerivice_DownloadArtifact(t *testing.T) {
301301 return nil , errors .New ("failed to download artifact" )
302302 })
303303 testBadOptions (t , methodName , func () (err error ) {
304- _ , _ , err = client .Actions .DownloadArtifact (ctx , "o" , "r" , 1 , true )
304+ _ , _ , err = client .Actions .DownloadArtifact (ctx , "o" , "r" , 1 , 1 )
305305 return err
306306 })
307307}
@@ -311,7 +311,7 @@ func TestActionsService_DownloadArtifact_invalidOwner(t *testing.T) {
311311 defer teardown ()
312312
313313 ctx := context .Background ()
314- _ , _ , err := client .Actions .DownloadArtifact (ctx , "%" , "r" , 1 , true )
314+ _ , _ , err := client .Actions .DownloadArtifact (ctx , "%" , "r" , 1 , 1 )
315315 testURLParseError (t , err )
316316}
317317
@@ -320,7 +320,7 @@ func TestActionsService_DownloadArtifact_invalidRepo(t *testing.T) {
320320 defer teardown ()
321321
322322 ctx := context .Background ()
323- _ , _ , err := client .Actions .DownloadArtifact (ctx , "o" , "%" , 1 , true )
323+ _ , _ , err := client .Actions .DownloadArtifact (ctx , "o" , "%" , 1 , 1 )
324324 testURLParseError (t , err )
325325}
326326
@@ -334,7 +334,7 @@ func TestActionsService_DownloadArtifact_StatusMovedPermanently_dontFollowRedire
334334 })
335335
336336 ctx := context .Background ()
337- _ , resp , _ := client .Actions .DownloadArtifact (ctx , "o" , "r" , 1 , false )
337+ _ , resp , _ := client .Actions .DownloadArtifact (ctx , "o" , "r" , 1 , 0 )
338338 if resp .StatusCode != http .StatusMovedPermanently {
339339 t .Errorf ("Actions.DownloadArtifact return status %d, want %d" , resp .StatusCode , http .StatusMovedPermanently )
340340 }
@@ -355,7 +355,7 @@ func TestActionsService_DownloadArtifact_StatusMovedPermanently_followRedirects(
355355 })
356356
357357 ctx := context .Background ()
358- url , resp , err := client .Actions .DownloadArtifact (ctx , "o" , "r" , 1 , true )
358+ url , resp , err := client .Actions .DownloadArtifact (ctx , "o" , "r" , 1 , 1 )
359359 if err != nil {
360360 t .Errorf ("Actions.DownloadArtifact return error: %v" , err )
361361 }
0 commit comments