Fix up intra-org fork test setup

[1] 96ac8d6a2f
This commit is contained in:
Andy Feller 2024-12-18 12:26:43 +11:00 committed by Frederick Zhang
parent be250b3d33
commit 0006091d76
No known key found for this signature in database
GPG key ID: 980A192C361BE1AE

View file

@ -456,6 +456,7 @@ func TestFind(t *testing.T) {
return "blueberries", nil
},
branchConfig: func(branch string) (c git.BranchConfig) {
c.MergeRef = "refs/heads/main"
c.RemoteName = "origin"
c.PushRemoteName = "origin"
c.Push = "origin/blueberries"
@ -465,6 +466,9 @@ func TestFind(t *testing.T) {
return context.Remotes{{
Remote: &git.Remote{Name: "origin"},
Repo: ghrepo.New("OWNER", "REPO-FORK"),
}, {
Remote: &git.Remote{Name: "upstream"},
Repo: ghrepo.New("OWNER", "REPO"),
}}, nil
},
},