From e1ceb6892a138b85b50a3270a5451f75f01f99ab Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 28 Sep 2023 09:46:34 +0200 Subject: [PATCH] Disable deadlock reporting when debugging an integration test --- pkg/gui/gui.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 1f76e281c..2ded4a5c5 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -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