We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24b0890 commit cc38eb6Copy full SHA for cc38eb6
pkg/snclient/check_service_linux_test.go
@@ -245,7 +245,6 @@ func TestCheckServiceLinuxOutput(t *testing.T) {
245
// find test service
246
inv, err := snc.getInventoryEntry(context.TODO(), "check_service")
247
require.NoError(t, err)
248
- require.NotEmptyf(t, inv, "expected services list to be non-empty")
249
var serviceName string
250
for _, entry := range inv {
251
if entry["state"] != "running" {
@@ -254,6 +253,7 @@ func TestCheckServiceLinuxOutput(t *testing.T) {
254
253
serviceName = entry["name"]
255
}
256
+ require.NotEmptyf(t, inv, "expected services list to be non-empty")
257
if serviceName == "" {
258
t.Skipf("no running service found, skipping test")
259
0 commit comments