This commit is contained in:
Lunny Xiao 2024-12-17 23:15:40 -08:00
parent a869ae7088
commit f508a32e93
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 4 additions and 4 deletions

View File

@ -52,9 +52,9 @@ func TestCreateIssueDependency(t *testing.T) {
_, err = issues_model.CloseIssue(db.DefaultContext, issue2, user1) _, err = issues_model.CloseIssue(db.DefaultContext, issue2, user1)
assert.NoError(t, err) assert.NoError(t, err)
issue2_closed, err := issues_model.GetIssueByID(db.DefaultContext, 2) issue2Closed, err := issues_model.GetIssueByID(db.DefaultContext, 2)
assert.NoError(t, err) assert.NoError(t, err)
assert.True(t, issue2_closed.IsClosed) assert.True(t, issue2Closed.IsClosed)
left, err = issues_model.IssueNoDependenciesLeft(db.DefaultContext, issue1) left, err = issues_model.IssueNoDependenciesLeft(db.DefaultContext, issue1)
assert.NoError(t, err) assert.NoError(t, err)
@ -67,7 +67,7 @@ func TestCreateIssueDependency(t *testing.T) {
_, err = issues_model.ReopenIssue(db.DefaultContext, issue2, user1) _, err = issues_model.ReopenIssue(db.DefaultContext, issue2, user1)
assert.NoError(t, err) assert.NoError(t, err)
issue2_reopened, err := issues_model.GetIssueByID(db.DefaultContext, 2) issue2Reopened, err := issues_model.GetIssueByID(db.DefaultContext, 2)
assert.NoError(t, err) assert.NoError(t, err)
assert.False(t, issue2_reopened.IsClosed) assert.False(t, issue2Reopened.IsClosed)
} }