diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-08-30 10:54:32 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-08-30 10:54:32 +0200 |
commit | 81216189e41287426ef374ceff26fcf65d363730 (patch) | |
tree | 96b2c045f2b56cd7a570e98e893227baeabc707c /pkg/gui/types | |
parent | 2b26b380b6ac40d3acfbf0446237990c11e5e0d2 (diff) |
Don't show toasts when running integration tests
It's pointless because you can't check for them in tests anyway, so they
unnecessarily slow down the test run by two seconds for no reason.
Diffstat (limited to 'pkg/gui/types')
-rw-r--r-- | pkg/gui/types/common.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/gui/types/common.go b/pkg/gui/types/common.go index 0b6a8e430..df927e1b2 100644 --- a/pkg/gui/types/common.go +++ b/pkg/gui/types/common.go @@ -107,6 +107,9 @@ type IGuiCommon interface { // hopefully we can remove this once we've moved all our keybinding stuff out of the gui god struct. GetInitialKeybindingsWithCustomCommands() ([]*Binding, []*gocui.ViewMouseBinding) + // Returns true if we're running an integration test + RunningIntegrationTest() bool + // Returns true if we're in a demo recording/playback InDemo() bool } |