@@ -94,7 +94,7 @@ func TestActionsService_ListArtifacts_notFound(t *testing.T) {
9494 t .Error ("Expected HTTP 404 response" )
9595 }
9696 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
97- t .Errorf ("Actions.ListArtifacts return status %d , want %d " , got , want )
97+ t .Errorf ("Actions.ListArtifacts return status %v , want %v " , got , want )
9898 }
9999 if artifacts != nil {
100100 t .Errorf ("Actions.ListArtifacts return %+v, want nil" , artifacts )
@@ -176,7 +176,7 @@ func TestActionsService_ListWorkflowRunArtifacts_notFound(t *testing.T) {
176176 t .Error ("Expected HTTP 404 response" )
177177 }
178178 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
179- t .Errorf ("Actions.ListWorkflowRunArtifacts return status %d , want %d " , got , want )
179+ t .Errorf ("Actions.ListWorkflowRunArtifacts return status %v , want %v " , got , want )
180180 }
181181 if artifacts != nil {
182182 t .Errorf ("Actions.ListWorkflowRunArtifacts return %+v, want nil" , artifacts )
@@ -263,7 +263,7 @@ func TestActionsService_GetArtifact_notFound(t *testing.T) {
263263 t .Error ("Expected HTTP 404 response" )
264264 }
265265 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
266- t .Errorf ("Actions.GetArtifact return status %d , want %d " , got , want )
266+ t .Errorf ("Actions.GetArtifact return status %v , want %v " , got , want )
267267 }
268268 if artifact != nil {
269269 t .Errorf ("Actions.GetArtifact return %+v, want nil" , artifact )
@@ -304,12 +304,12 @@ func TestActionsService_DownloadArtifact(t *testing.T) {
304304 t .Errorf ("Actions.DownloadArtifact returned error: %v" , err )
305305 }
306306 if resp .StatusCode != http .StatusFound {
307- t .Errorf ("Actions.DownloadArtifact returned status: %d , want %d " , resp .StatusCode , http .StatusFound )
307+ t .Errorf ("Actions.DownloadArtifact returned status: %v , want %v " , resp .StatusCode , http .StatusFound )
308308 }
309309
310310 want := "https://github.com/artifact"
311311 if url .String () != want {
312- t .Errorf ("Actions.DownloadArtifact returned %+v, want %+v" , url . String () , want )
312+ t .Errorf ("Actions.DownloadArtifact returned %+v, want %+v" , url , want )
313313 }
314314
315315 const methodName = "DownloadArtifact"
@@ -420,7 +420,7 @@ func TestActionsService_DownloadArtifact_StatusMovedPermanently_dontFollowRedire
420420 ctx := t .Context ()
421421 _ , resp , _ := client .Actions .DownloadArtifact (ctx , "o" , "r" , 1 , 0 )
422422 if resp .StatusCode != http .StatusMovedPermanently {
423- t .Errorf ("Actions.DownloadArtifact return status %d , want %d " , resp .StatusCode , http .StatusMovedPermanently )
423+ t .Errorf ("Actions.DownloadArtifact return status %v , want %v " , resp .StatusCode , http .StatusMovedPermanently )
424424 }
425425 })
426426 }
@@ -464,11 +464,11 @@ func TestActionsService_DownloadArtifact_StatusMovedPermanently_followRedirects(
464464 t .Errorf ("Actions.DownloadArtifact return error: %v" , err )
465465 }
466466 if resp .StatusCode != http .StatusFound {
467- t .Errorf ("Actions.DownloadArtifact return status %d , want %d " , resp .StatusCode , http .StatusFound )
467+ t .Errorf ("Actions.DownloadArtifact return status %v , want %v " , resp .StatusCode , http .StatusFound )
468468 }
469469 want := "https://github.com/artifact"
470470 if url .String () != want {
471- t .Errorf ("Actions.DownloadArtifact returned %+v, want %+v" , url . String () , want )
471+ t .Errorf ("Actions.DownloadArtifact returned %+v, want %+v" , url , want )
472472 }
473473 })
474474 }
@@ -515,7 +515,7 @@ func TestActionsService_DownloadArtifact_unexpectedCode(t *testing.T) {
515515 t .Error ("Actions.DownloadArtifact should return unexpected status code" )
516516 }
517517 if got , want := resp .Response .StatusCode , http .StatusNoContent ; got != want {
518- t .Errorf ("Actions.DownloadArtifact return status %d , want %d " , got , want )
518+ t .Errorf ("Actions.DownloadArtifact return status %v , want %v " , got , want )
519519 }
520520 if url != nil {
521521 t .Errorf ("Actions.DownloadArtifact return %+v, want nil" , url )
@@ -582,7 +582,7 @@ func TestActionsService_DeleteArtifact_notFound(t *testing.T) {
582582 t .Error ("Expected HTTP 404 response" )
583583 }
584584 if got , want := resp .Response .StatusCode , http .StatusNotFound ; got != want {
585- t .Errorf ("Actions.DeleteArtifact return status %d , want %d " , got , want )
585+ t .Errorf ("Actions.DeleteArtifact return status %v , want %v " , got , want )
586586 }
587587}
588588
0 commit comments