Skip to content

Commit

Permalink
Fix unhandled error in actions_artifacts_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mo1ein committed Sep 13, 2022
1 parent dcd49c5 commit f29cf9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion github/actions_artifacts_test.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit f29cf9d

Please sign in to comment.