Skip to content

Commit

Permalink
Disable deadlock reporting when debugging an integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaller committed Sep 28, 2023
1 parent 40b8557 commit e1ceb68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,10 @@ func (gui *Gui) Run(startArgs appTypes.StartArgs) error {
deadlock.Opts.LogBuf = utils.NewOnceWriter(os.Stderr, func() {
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 {
return nil
Expand Down

0 comments on commit e1ceb68

Please sign in to comment.