summaryrefslogtreecommitdiffstats
path: root/models/git/branches_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/git/branches_test.go')
-rw-r--r--models/git/branches_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/git/branches_test.go b/models/git/branches_test.go
index b7df7f243e..5d18d9525e 100644
--- a/models/git/branches_test.go
+++ b/models/git/branches_test.go
@@ -88,12 +88,12 @@ func TestFindRenamedBranch(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase())
branch, exist, err := git_model.FindRenamedBranch(db.DefaultContext, 1, "dev")
assert.NoError(t, err)
- assert.Equal(t, true, exist)
+ assert.True(t, exist)
assert.Equal(t, "master", branch.To)
_, exist, err = git_model.FindRenamedBranch(db.DefaultContext, 1, "unknow")
assert.NoError(t, err)
- assert.Equal(t, false, exist)
+ assert.False(t, exist)
}
func TestRenameBranch(t *testing.T) {
@@ -115,7 +115,7 @@ func TestRenameBranch(t *testing.T) {
return nil
}))
- assert.Equal(t, true, _isDefault)
+ assert.True(t, _isDefault)
repo1 = unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1})
assert.Equal(t, "main", repo1.DefaultBranch)