Skip to content

Commit 982cb1f

Browse files
committed
fix test
1 parent d190fb6 commit 982cb1f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

routers/web/repo/release_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ func TestNewReleasePost(t *testing.T) {
7575
Target: testCase.Form.Target,
7676
Title: testCase.Form.Title,
7777
Note: testCase.Form.Content,
78-
IsTag: testCase.IsTag,
79-
}, unittest.Cond("is_draft=?", testCase.Form.Draft))
80-
ctx.Repo.GitRepo.Close()
78+
}, unittest.Cond("is_tag=? AND is_draft=?", testCase.IsTag, testCase.Form.Draft))
79+
_ = ctx.Repo.GitRepo.Close()
8180
}
8281
}
8382

0 commit comments

Comments
 (0)