Adds more tests for GetStartTime

This commit is contained in:
2021-05-15 18:13:53 -07:00
parent aaa5f28ba7
commit 64249bf8e6
2 changed files with 89 additions and 0 deletions

View File

@@ -125,6 +125,7 @@ func Show(ctx context.Context, unit string, property properties.Property, opts O
}
stdout, _, _, err := execute(ctx, args)
stdout = strings.TrimPrefix(stdout, string(property)+"=")
stdout = strings.TrimSuffix(stdout, "\n")
return stdout, err
}