Skip to content

Commit 714e01a

Browse files
committed
Improve test coverage
1 parent 106831b commit 714e01a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github/repos_contents_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,12 +670,12 @@ func TestRepositoriesService_DeleteFile(t *testing.T) {
670670
func TestRepositoriesService_GetArchiveLink(t *testing.T) {
671671
client, mux, _, teardown := setup()
672672
defer teardown()
673-
mux.HandleFunc("/repos/o/r/tarball", func(w http.ResponseWriter, r *http.Request) {
673+
mux.HandleFunc("/repos/o/r/tarball/yo", func(w http.ResponseWriter, r *http.Request) {
674674
testMethod(t, r, "GET")
675675
http.Redirect(w, r, "http://github.com/a", http.StatusFound)
676676
})
677677
ctx := context.Background()
678-
url, resp, err := client.Repositories.GetArchiveLink(ctx, "o", "r", Tarball, &RepositoryContentGetOptions{}, true)
678+
url, resp, err := client.Repositories.GetArchiveLink(ctx, "o", "r", Tarball, &RepositoryContentGetOptions{Ref: "yo"}, true)
679679
if err != nil {
680680
t.Errorf("Repositories.GetArchiveLink returned error: %v", err)
681681
}

0 commit comments

Comments
 (0)