summaryrefslogtreecommitdiffstats
path: root/pkg/gui/test_mode.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-08-13 12:56:04 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-08-13 13:56:50 +1000
commit304d74370e720473ee384e171a8e8f00956fc72f (patch)
tree79de40af6990ee00a426f67f12d1d9d7fcd8067b /pkg/gui/test_mode.go
parent2bdefe20498f58fe3e8e41a2be08650576ec6d6f (diff)
refactor to ensure code doesn't depend on integration code
Diffstat (limited to 'pkg/gui/test_mode.go')
-rw-r--r--pkg/gui/test_mode.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/test_mode.go b/pkg/gui/test_mode.go
index e9d596e80..cd3bd83ba 100644
--- a/pkg/gui/test_mode.go
+++ b/pkg/gui/test_mode.go
@@ -14,7 +14,7 @@ import (
)
type IntegrationTest interface {
- Run(guiAdapter *GuiAdapter)
+ Run(guiAdapter *GuiDriver)
}
func (gui *Gui) handleTestMode(test integrationTypes.IntegrationTest) {
@@ -22,7 +22,7 @@ func (gui *Gui) handleTestMode(test integrationTypes.IntegrationTest) {
go func() {
time.Sleep(time.Millisecond * 100)
- test.Run(&GuiAdapter{gui: gui})
+ test.Run(&GuiDriver{gui: gui})
gui.g.Update(func(*gocui.Gui) error {
return gocui.ErrQuit