From 7ec4b485b4b9560c900e9472882633146133e8bc Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Tue, 25 Jun 2024 17:03:06 +0200 Subject: [PATCH] fix: update test with latest libs fix ref libs PR: https://github.com/falcosecurity/libs/pull/1923 Signed-off-by: Andrea Terzolo --- tests/falco/legacy_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/falco/legacy_test.go b/tests/falco/legacy_test.go index 75326b0..d01aaae 100644 --- a/tests/falco/legacy_test.go +++ b/tests/falco/legacy_test.go @@ -2628,7 +2628,7 @@ func TestFalco_Legacy_NonSudoSetuid(t *testing.T) { falco.WithArgs("-o", "json_include_output_property=false"), falco.WithArgs("-o", "json_include_tags_property=false"), ) - assert.Zero(t, res.Detections().Count()) + assert.Equal(t, 1, res.Detections().OfRule("Non sudo setuid").Count()) assert.NoError(t, res.Err(), "%s", res.Stderr()) assert.Equal(t, 0, res.ExitCode()) }