6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 20:54:41 +00:00

Fix tests after changing the way branches are ordered

"master" branch is now always on top.
This commit is contained in:
Grzegorz Dlugoszewski
2020-06-04 12:24:37 +02:00
parent f2d8496136
commit 7d2c9b1954

View File

@@ -73,12 +73,12 @@ func TestStatus(t *testing.T) {
CurrentBranch: "master",
Branches: []*BranchStatus{
{
Name: "local",
Name: "master",
Upstream: "",
NeedsPull: false,
NeedsPush: false,
}, {
Name: "master",
Name: "local",
Upstream: "",
NeedsPull: false,
NeedsPush: false,
@@ -91,13 +91,13 @@ func TestStatus(t *testing.T) {
CurrentBranch: "local",
Branches: []*BranchStatus{
{
Name: "local",
Upstream: "",
Name: "master",
Upstream: "origin/master",
NeedsPull: false,
NeedsPush: false,
}, {
Name: "master",
Upstream: "origin/master",
Name: "local",
Upstream: "",
NeedsPull: false,
NeedsPush: false,
},