Skip to content

Commit e1ceb68

Browse files
committed
Disable deadlock reporting when debugging an integration test
1 parent 40b8557 commit e1ceb68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/gui/gui.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,10 @@ func (gui *Gui) Run(startArgs appTypes.StartArgs) error {
623623
deadlock.Opts.LogBuf = utils.NewOnceWriter(os.Stderr, func() {
624624
gui.g.Close()
625625
})
626-
deadlock.Opts.Disable = !gui.Debug
626+
// disable deadlock reporting if we're not running in debug mode, or if
627+
// we're debugging an integration test. In this latter case, stopping at
628+
// breakpoints and stepping through code can easily take more than 30s.
629+
deadlock.Opts.Disable = !gui.Debug || os.Getenv(components.WAIT_FOR_DEBUGGER_ENV_VAR) == ""
627630

628631
if err := gui.Config.ReloadUserConfig(); err != nil {
629632
return nil

0 commit comments

Comments
 (0)