Skip to content

Commit 7a30f43

Browse files
committed
Fix test
1 parent fe71956 commit 7a30f43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/api_branch_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func TestAPICreateBranchWithSyncBranches(t *testing.T) {
303303
RepoID: 1,
304304
})
305305
assert.NoError(t, err)
306-
assert.Len(t, branches, 5)
306+
assert.Len(t, branches, 6)
307307

308308
// make a broke repository with no branch on database
309309
_, err = db.DeleteByBean(db.DefaultContext, git_model.Branch{RepoID: 1})
@@ -320,7 +320,7 @@ func TestAPICreateBranchWithSyncBranches(t *testing.T) {
320320
RepoID: 1,
321321
})
322322
assert.NoError(t, err)
323-
assert.Len(t, branches, 6)
323+
assert.Len(t, branches, 7)
324324

325325
branches, err = db.Find[git_model.Branch](db.DefaultContext, git_model.FindBranchOptions{
326326
RepoID: 1,

0 commit comments

Comments
 (0)