From 5865d30ada14eb2b710a3c62991b3a32b2dfd6bd Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Sat, 15 May 2021 19:19:23 -0700 Subject: [PATCH] marked show tests as parallel --- systemctl_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/systemctl_test.go b/systemctl_test.go index 9e40314..5a6af82 100644 --- a/systemctl_test.go +++ b/systemctl_test.go @@ -129,13 +129,14 @@ func TestShow(t *testing.T) { t.Skip("skipping test in short mode.") } unit := "nginx" - ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) - defer cancel() opts := Options{ usermode: false, } for _, x := range properties.Properties { t.Run(fmt.Sprintf("show property %s", string(x)), func(t *testing.T) { + ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second) + defer cancel() + t.Parallel() _, err := Show(ctx, unit, x, opts) if err != nil { t.Errorf("error is %v, but should have been %v", err, nil)