Skip to content

Commit 0a93b9e

Browse files
committed
fix for testing export of issues
1 parent 056a0d6 commit 0a93b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/issue_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ func TestIssueListExport(t *testing.T) {
381381
_ = testNewIssue(t, session, "user2", "repo1", "Title3", "Description3")
382382

383383
// trying to export all open issues of the given repository
384-
req := NewRequestWithValues(t, "GET", fmt.Sprintf("/%s/%s/issues/export?%s", "user2", "repo1", "type=all&state=open"))
384+
req := NewRequest(t, "GET", fmt.Sprintf("/%s/%s/issues/export?%s", "user2", "repo1", "type=all&state=open"))
385385
resp := session.MakeRequest(t, req, http.StatusOK)
386386

387387
// Content-Type should be an Excel file (XLSX)
@@ -391,7 +391,7 @@ func TestIssueListExport(t *testing.T) {
391391
// Content-Disposition should indicate attachment with .xlsx
392392
cd := resp.Header().Get("Content-Disposition")
393393
assert.Contains(t, cd, "attachment")
394-
assert.True(t, strings.Contains(cd, ".xlsx"))
394+
assert.Contains(t, cd, ".xlsx")
395395

396396
// open bytes as XLSX with excelize
397397
data := resp.Body.Bytes()

0 commit comments

Comments
 (0)