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)