From 7d2c9b1954681451a92e8310702dec5b26406d9b Mon Sep 17 00:00:00 2001 From: Grzegorz Dlugoszewski Date: Thu, 4 Jun 2020 12:24:37 +0200 Subject: [PATCH] Fix tests after changing the way branches are ordered "master" branch is now always on top. --- pkg/status_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/status_test.go b/pkg/status_test.go index 8de1afd..6890345 100644 --- a/pkg/status_test.go +++ b/pkg/status_test.go @@ -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, },