diff options
Diffstat (limited to 'pkg/gui/context_test.go')
-rw-r--r-- | pkg/gui/context_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/context_test.go b/pkg/gui/context_test.go index abfcab4cd..7f03f7484 100644 --- a/pkg/gui/context_test.go +++ b/pkg/gui/context_test.go @@ -8,7 +8,7 @@ import ( ) func TestCanDeactivatePopupContextsWithoutViews(t *testing.T) { - contexts := []func(gui *Gui) Context { + contexts := []func(gui *Gui) Context{ func(gui *Gui) Context { return gui.State.Contexts.Credentials }, func(gui *Gui) Context { return gui.State.Contexts.Confirmation }, func(gui *Gui) Context { return gui.State.Contexts.CommitMessage }, @@ -20,7 +20,7 @@ func TestCanDeactivatePopupContextsWithoutViews(t *testing.T) { context := c(gui) gui.g = &gocui.Gui{} - gui.deactivateContext(context) + _ = gui.deactivateContext(context) // This really only checks a prerequisit, not the effect of deactivateContext view, _ := gui.g.View(context.GetViewName()) @@ -32,7 +32,7 @@ func TestCanDeactivateCommitFilesContextsWithoutViews(t *testing.T) { gui := NewDummyGui() gui.g = &gocui.Gui{} - gui.deactivateContext(gui.State.Contexts.CommitFiles) + _ = gui.deactivateContext(gui.State.Contexts.CommitFiles) // This really only checks a prerequisite, not the effect of deactivateContext view, _ := gui.g.View(gui.State.Contexts.CommitFiles.GetViewName()) |