diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2019-11-15 12:20:47 -0300 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-11-15 15:20:47 +0000 |
commit | c58fba944d701336daab57f0f0647850f7bb671f (patch) | |
tree | 18ca9ff0a17aa9c8a97ba3688ac7cf98da524206 /models/action_test.go | |
parent | 77190097065e72abba1e6055a8714e0ee18a1dc7 (diff) | |
download | gitea-c58fba944d701336daab57f0f0647850f7bb671f.tar.gz gitea-c58fba944d701336daab57f0f0647850f7bb671f.zip |
Fix permission checks for close/reopen from commit (#8875)
* Fix checks for close/reopen from commit
* Fix permission order
Diffstat (limited to 'models/action_test.go')
-rw-r--r-- | models/action_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action_test.go b/models/action_test.go index e7766eac2f..2131607fc1 100644 --- a/models/action_test.go +++ b/models/action_test.go @@ -166,7 +166,7 @@ func TestUpdateIssuesCommit(t *testing.T) { PosterID: user.ID, IssueID: 1, } - issueBean := &Issue{RepoID: repo.ID, Index: 2} + issueBean := &Issue{RepoID: repo.ID, Index: 4} AssertNotExistsBean(t, commentBean) AssertNotExistsBean(t, &Issue{RepoID: repo.ID, Index: 2}, "is_closed=1") @@ -220,7 +220,7 @@ func TestUpdateIssuesCommit_Colon(t *testing.T) { repo := AssertExistsAndLoadBean(t, &Repository{ID: 1}).(*Repository) repo.Owner = user - issueBean := &Issue{RepoID: repo.ID, Index: 2} + issueBean := &Issue{RepoID: repo.ID, Index: 4} AssertNotExistsBean(t, &Issue{RepoID: repo.ID, Index: 2}, "is_closed=1") assert.NoError(t, UpdateIssuesCommit(user, repo, pushCommits, repo.DefaultBranch)) |