diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-06-05 11:11:25 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-06-05 14:44:02 +0200 |
commit | 4f6d3fb592af1448a33407b838acceb0acabea0e (patch) | |
tree | 4076ccbf6eaadb385ce6ce2e7bbf2418b3775781 /pkg/gui/gui_driver.go | |
parent | 187a2f0cc256c4980da2811cc18d5ea3a054a80c (diff) |
Don't wait in integration tests when running in headless mode
There's no point in spending time waiting in this case, as nobody can see it.
Diffstat (limited to 'pkg/gui/gui_driver.go')
-rw-r--r-- | pkg/gui/gui_driver.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/gui/gui_driver.go b/pkg/gui/gui_driver.go index 3421602e9..5de0ad4ee 100644 --- a/pkg/gui/gui_driver.go +++ b/pkg/gui/gui_driver.go @@ -21,6 +21,7 @@ type GuiDriver struct { gui *Gui isIdleChan chan struct{} toastChan chan string + headless bool } var _ integrationTypes.GuiDriver = &GuiDriver{} @@ -161,3 +162,7 @@ func (self *GuiDriver) NextToast() *string { return nil } } + +func (self *GuiDriver) Headless() bool { + return self.headless +} |