commands: Fix data race in test

Note that this is a test fix only.
This commit is contained in:
Bjørn Erik Pedersen 2023-03-14 12:18:42 +01:00
parent f5eddf89bf
commit 0fbab7cbc5
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
6 changed files with 15 additions and 11 deletions

View file

@ -302,6 +302,7 @@ func (c *commandeer) loadConfig() error {
cfg := c.DepsCfg
c.configured = false
cfg.Running = c.running
loggers.PanicOnWarning.Store(c.h.panicOnWarning)
var dir string
if c.h.source != "" {