summaryrefslogtreecommitdiffstats
path: root/integrations/release_test.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-12-10 12:06:48 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2019-12-10 19:06:48 +0800
commit4dc3993b221cf7b321e578e1f542891a49714b2d (patch)
treec93ae83a2667565733ee7aea16c79bcf34326748 /integrations/release_test.go
parentd3a9c4ceec85489bf917eba8b45fa57fd0c1f4e6 (diff)
downloadgitea-4dc3993b221cf7b321e578e1f542891a49714b2d.tar.gz
gitea-4dc3993b221cf7b321e578e1f542891a49714b2d.zip
tests: add attachement tests integration (#9309)
* tests: add attachements integration * Update integrations/attachement_test.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'integrations/release_test.go')
-rw-r--r--integrations/release_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/integrations/release_test.go b/integrations/release_test.go
index 8556424901..33badcb0a2 100644
--- a/integrations/release_test.go
+++ b/integrations/release_test.go
@@ -78,7 +78,7 @@ func TestCreateRelease(t *testing.T) {
session := loginUser(t, "user2")
createNewRelease(t, session, "/user2/repo1", "v0.0.1", "v0.0.1", false, false)
- checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.stable"), 1)
+ checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.stable"), 2)
}
func TestCreateReleasePreRelease(t *testing.T) {
@@ -87,7 +87,7 @@ func TestCreateReleasePreRelease(t *testing.T) {
session := loginUser(t, "user2")
createNewRelease(t, session, "/user2/repo1", "v0.0.1", "v0.0.1", true, false)
- checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.prerelease"), 1)
+ checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.prerelease"), 2)
}
func TestCreateReleaseDraft(t *testing.T) {
@@ -96,7 +96,7 @@ func TestCreateReleaseDraft(t *testing.T) {
session := loginUser(t, "user2")
createNewRelease(t, session, "/user2/repo1", "v0.0.1", "v0.0.1", false, true)
- checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.draft"), 1)
+ checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.draft"), 2)
}
func TestCreateReleasePaging(t *testing.T) {