|
|
|
@ -270,7 +270,7 @@ func TestAPICreateBranchWithSyncBranches(t *testing.T) { |
|
|
|
|
RepoID: 1, |
|
|
|
|
}) |
|
|
|
|
assert.NoError(t, err) |
|
|
|
|
assert.Len(t, branches, 4) |
|
|
|
|
assert.Len(t, branches, 7) |
|
|
|
|
|
|
|
|
|
// make a broke repository with no branch on database
|
|
|
|
|
_, err = db.DeleteByBean(db.DefaultContext, git_model.Branch{RepoID: 1}) |
|
|
|
@ -287,7 +287,7 @@ func TestAPICreateBranchWithSyncBranches(t *testing.T) { |
|
|
|
|
RepoID: 1, |
|
|
|
|
}) |
|
|
|
|
assert.NoError(t, err) |
|
|
|
|
assert.Len(t, branches, 5) |
|
|
|
|
assert.Len(t, branches, 8) |
|
|
|
|
|
|
|
|
|
branches, err = db.Find[git_model.Branch](db.DefaultContext, git_model.FindBranchOptions{ |
|
|
|
|
RepoID: 1, |
|
|
|
|