cleans up comments, adds short testing options to more tests

This commit is contained in:
Tai Groot
2021-05-16 23:19:59 -07:00
parent 54b77122a5
commit 125e4771dd
3 changed files with 12 additions and 18 deletions

View File

@@ -147,6 +147,9 @@ func ExampleEnable() {
func TestIsActive(t *testing.T) {
unit := "nginx"
t.Run(fmt.Sprintf("check active"), func(t *testing.T) {
if testing.Short() {
t.Skip("skipping in short mode")
}
if userString != "root" && userString != "system" {
t.Skip("skipping superuser test while running as user")
}