mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
Disable deadlock reporting when debugging an integration test
This commit is contained in:
parent
40b8557608
commit
e1ceb6892a
1 changed files with 4 additions and 1 deletions
|
@ -623,7 +623,10 @@ func (gui *Gui) Run(startArgs appTypes.StartArgs) error {
|
||||||
deadlock.Opts.LogBuf = utils.NewOnceWriter(os.Stderr, func() {
|
deadlock.Opts.LogBuf = utils.NewOnceWriter(os.Stderr, func() {
|
||||||
gui.g.Close()
|
gui.g.Close()
|
||||||
})
|
})
|
||||||
deadlock.Opts.Disable = !gui.Debug
|
// disable deadlock reporting if we're not running in debug mode, or if
|
||||||
|
// we're debugging an integration test. In this latter case, stopping at
|
||||||
|
// breakpoints and stepping through code can easily take more than 30s.
|
||||||
|
deadlock.Opts.Disable = !gui.Debug || os.Getenv(components.WAIT_FOR_DEBUGGER_ENV_VAR) == ""
|
||||||
|
|
||||||
if err := gui.Config.ReloadUserConfig(); err != nil {
|
if err := gui.Config.ReloadUserConfig(); err != nil {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue