From f508a32e939a9f1503086941c2ad979b217097ea Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 17 Dec 2024 23:15:40 -0800 Subject: [PATCH] Fix test --- models/issues/dependency_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/models/issues/dependency_test.go b/models/issues/dependency_test.go index 16d18036a60..67418039ded 100644 --- a/models/issues/dependency_test.go +++ b/models/issues/dependency_test.go @@ -52,9 +52,9 @@ func TestCreateIssueDependency(t *testing.T) { _, err = issues_model.CloseIssue(db.DefaultContext, issue2, user1) 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.True(t, issue2_closed.IsClosed) + assert.True(t, issue2Closed.IsClosed) left, err = issues_model.IssueNoDependenciesLeft(db.DefaultContext, issue1) assert.NoError(t, err) @@ -67,7 +67,7 @@ func TestCreateIssueDependency(t *testing.T) { _, err = issues_model.ReopenIssue(db.DefaultContext, issue2, user1) 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.False(t, issue2_reopened.IsClosed) + assert.False(t, issue2Reopened.IsClosed) }