We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c14ea57 commit 941053eCopy full SHA for 941053e
util/util_test.go
@@ -40,6 +40,11 @@ func TestRunningFromSystemService(t *testing.T) {
40
func TestCurrentUnitName(t *testing.T) {
41
testIsRunningSystemd(t)
42
43
+ fromService, err := RunningFromSystemService()
44
+ if err != nil || !fromService {
45
+ t.Skip("Not running from a systemd service")
46
+ }
47
+
48
s, err := CurrentUnitName()
49
if err != nil {
50
t.Error(err.Error())
0 commit comments