1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 22:54:24 +00:00

check if the issue is closed

This commit is contained in:
Zettat123 2024-04-29 14:28:47 +08:00
parent cad8ea713d
commit e9436f0b10

View File

@ -634,6 +634,12 @@ func TestPullMergeIndexerNotifier(t *testing.T) {
assert.EqualValues(t, "pulls", elem[3])
testPullMerge(t, session, elem[1], elem[2], elem[4], repo_model.MergeStyleMerge, false)
// check if the issue is closed
issue = unittest.AssertExistsAndLoadBean(t, &issues_model.Issue{
ID: issue.ID,
})
assert.True(t, issue.IsClosed)
queue.GetManager().FlushAll(context.Background(), 0)
// search issues again