From 57a1817debedc6a43d8200f662fe6b2a40127027 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Wed, 21 Dec 2022 22:51:39 +1100 Subject: [PATCH] don't kill long-running sandbox sessions --- pkg/gui/test_mode.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/gui/test_mode.go b/pkg/gui/test_mode.go index 97c291828..9c6b5f30d 100644 --- a/pkg/gui/test_mode.go +++ b/pkg/gui/test_mode.go @@ -8,6 +8,7 @@ import ( "time" "github.com/jesseduffield/gocui" + "github.com/jesseduffield/lazygit/pkg/integration/components" integrationTypes "github.com/jesseduffield/lazygit/pkg/integration/types" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -17,6 +18,10 @@ type IntegrationTest interface { } func (gui *Gui) handleTestMode(test integrationTypes.IntegrationTest) { + if os.Getenv(components.SANDBOX_ENV_VAR) == "true" { + return + } + if test != nil { go func() { time.Sleep(time.Millisecond * 100)