summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-09-28 09:46:34 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-09-28 10:03:53 +0200
commite1ceb6892a138b85b50a3270a5451f75f01f99ab (patch)
treef50e90ca4c7da3f04aad75b3f5c83cb30ebf4031
parent40b8557608aa318aa15f4a8560e5648a2b5fd427 (diff)
Disable deadlock reporting when debugging an integration test
-rw-r--r--pkg/gui/gui.go5
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