1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-08 22:36:49 +02:00

Disable the 40-second timeout for integration tests when debugging

Pausing at breakpoints and stepping through code can often take longer than 40s,
so the timeout is annoying when debugging.
This commit is contained in:
Stefan Haller
2023-09-11 21:28:31 +02:00
parent 92e107f52d
commit 40b8557608

View File

@@ -45,10 +45,12 @@ func (gui *Gui) handleTestMode() {
log.Fatal("gocui should have already exited")
}()
go utils.Safe(func() {
time.Sleep(time.Second * 40)
log.Fatal("40 seconds is up, lazygit recording took too long to complete")
})
if os.Getenv(components.WAIT_FOR_DEBUGGER_ENV_VAR) == "" {
go utils.Safe(func() {
time.Sleep(time.Second * 40)
log.Fatal("40 seconds is up, lazygit recording took too long to complete")
})
}
}
}