diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-09-28 09:46:34 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-09-28 10:03:53 +0200 |
commit | e1ceb6892a138b85b50a3270a5451f75f01f99ab (patch) | |
tree | f50e90ca4c7da3f04aad75b3f5c83cb30ebf4031 | |
parent | 40b8557608aa318aa15f4a8560e5648a2b5fd427 (diff) |
Disable deadlock reporting when debugging an integration test
-rw-r--r-- | pkg/gui/gui.go | 5 |
1 files changed, 4 insertions, 1 deletions
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 |