diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-13 04:38:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-13 04:38:48 +0900 |
| commit | 7638a44fa613f23434318bdf136723aa010e8638 (patch) | |
| tree | 7b5270ed4e9b6d7f1ee0f28c58d8077aa1d18005 /system/dbus/proc.go | |
| parent | a14b6535a66cb7ac0fc4827f767ffaee0ce04b57 (diff) | |
treewide: parallel tests
Most tests already had no global state, however parallel was never enabled. This change enables it for all applicable tests.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/dbus/proc.go')
| -rw-r--r-- | system/dbus/proc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/dbus/proc.go b/system/dbus/proc.go index 005b9142..b386eecb 100644 --- a/system/dbus/proc.go +++ b/system/dbus/proc.go @@ -146,7 +146,7 @@ func (p *Proxy) Wait() error { return errors.New("dbus: not started") } - errs := make([]error, 3) + var errs [3]error errs[0] = p.helper.Wait() if errors.Is(errs[0], context.Canceled) && @@ -165,7 +165,7 @@ func (p *Proxy) Wait() error { } } - return errors.Join(errs...) + return errors.Join(errs[:]...) } // Close cancels the context passed to the helper instance attached to xdg-dbus-proxy. |
