Skip to content

Commit

Permalink
fix process test regarding enabled connections check
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux committed Jan 22, 2024
1 parent 6b61fef commit 70dcb5d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/process/checks/enabled_checks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
package checks

import (
"runtime"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -90,11 +89,7 @@ func TestConnectionsCheck(t *testing.T) {
scfg.SetWithoutSource("system_probe_config.enabled", true)

enabledChecks := getEnabledChecks(t, cfg, scfg)
if runtime.GOOS == "darwin" {
assertNotContainsCheck(t, enabledChecks, ConnectionsCheckName)
} else {
assertContainsCheck(t, enabledChecks, ConnectionsCheckName)
}
assertContainsCheck(t, enabledChecks, ConnectionsCheckName)
})

t.Run("disabled", func(t *testing.T) {
Expand Down

0 comments on commit 70dcb5d

Please sign in to comment.