From 9a08ccfae2ca7ebebbad87250dd9b59c8213b9b1 Mon Sep 17 00:00:00 2001 From: Boris Ershov Date: Thu, 22 Jul 2021 23:25:54 +0700 Subject: [PATCH] Fixed attachments test --- attachments_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/attachments_test.go b/attachments_test.go index 44cd8a9..bac3fcc 100644 --- a/attachments_test.go +++ b/attachments_test.go @@ -48,7 +48,9 @@ func testAttachmentUpload(t *testing.T, r Context, projectID, userID int) int { i := testIssueCreate(t, r, projectID, userID, &u) // Request single issue to get Attachment ID - j, s, err := r.IssueSingleGet(i.ID, []string{"attachments"}) + j, s, err := r.IssueSingleGet(i.ID, IssueSingleGetRequest{ + Includes: []string{"attachments"}, + }) if err != nil { t.Fatal("Issue get error:", err, s) }