diff --git a/github/actions_artifacts_test.go b/github/actions_artifacts_test.go index e35a873bc0a..56c13c77d32 100644 --- a/github/actions_artifacts_test.go +++ b/github/actions_artifacts_test.go @@ -334,7 +334,10 @@ func TestActionsService_DownloadArtifact_StatusMovedPermanently_dontFollowRedire }) ctx := context.Background() - _, resp, _ := client.Actions.DownloadArtifact(ctx, "o", "r", 1, false) + _, resp, err := client.Actions.DownloadArtifact(ctx, "o", "r", 1, false) + if err != nil { + t.Errorf("Actions.DownloadArtifact returned error: %v", err) + } if resp.StatusCode != http.StatusMovedPermanently { t.Errorf("Actions.DownloadArtifact return status %d, want %d", resp.StatusCode, http.StatusMovedPermanently) }