Skip to content

Commit

Permalink
Fixed attachments test
Browse files Browse the repository at this point in the history
  • Loading branch information
borisershov committed Jul 22, 2021
1 parent a89a2e3 commit 9a08ccf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion attachments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 9a08ccf

Please sign in to comment.