mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-17 12:06:38 +02:00
don't kill long-running sandbox sessions
This commit is contained in:
parent
c77df59b9b
commit
57a1817deb
@ -8,6 +8,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jesseduffield/gocui"
|
"github.com/jesseduffield/gocui"
|
||||||
|
"github.com/jesseduffield/lazygit/pkg/integration/components"
|
||||||
integrationTypes "github.com/jesseduffield/lazygit/pkg/integration/types"
|
integrationTypes "github.com/jesseduffield/lazygit/pkg/integration/types"
|
||||||
"github.com/jesseduffield/lazygit/pkg/utils"
|
"github.com/jesseduffield/lazygit/pkg/utils"
|
||||||
)
|
)
|
||||||
@ -17,6 +18,10 @@ type IntegrationTest interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) handleTestMode(test integrationTypes.IntegrationTest) {
|
func (gui *Gui) handleTestMode(test integrationTypes.IntegrationTest) {
|
||||||
|
if os.Getenv(components.SANDBOX_ENV_VAR) == "true" {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if test != nil {
|
if test != nil {
|
||||||
go func() {
|
go func() {
|
||||||
time.Sleep(time.Millisecond * 100)
|
time.Sleep(time.Millisecond * 100)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user