mirror of
https://github.com/taigrr/systemctl.git
synced 2025-10-06 16:57:39 +08:00
cleans up comments, adds short testing options to more tests
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user