aboutsummaryrefslogtreecommitdiffstats
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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/git/branches_test.go b/models/git/branches_test.go
index 58c4ad027b..754c5a4e66 100644
--- a/models/git/branches_test.go
+++ b/models/git/branches_test.go
@@ -102,7 +102,7 @@ func TestRenameBranch(t *testing.T) {
repo1 := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1})
_isDefault := false
- ctx, committer, err := db.TxContext()
+ ctx, committer, err := db.TxContext(db.DefaultContext)
defer committer.Close()
assert.NoError(t, err)
assert.NoError(t, git_model.UpdateProtectBranch(ctx, repo1, &git_model.ProtectedBranch{