mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +02:00
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.
This commit is contained in:
@@ -182,6 +182,10 @@ func (self *guiCommon) AfterLayout(f func() error) {
|
||||
}
|
||||
}
|
||||
|
||||
func (self *guiCommon) RunningIntegrationTest() bool {
|
||||
return self.gui.integrationTest != nil
|
||||
}
|
||||
|
||||
func (self *guiCommon) InDemo() bool {
|
||||
return self.gui.integrationTest != nil && self.gui.integrationTest.IsDemo()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user