From a4830260797c019c7c803014c35b41b16e2e763d Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 9 May 2024 14:33:54 +0200 Subject: [PATCH 1/2] chore(tests/falco): drop debug printlns. Signed-off-by: Federico Di Pierro --- tests/falco/miscs_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/falco/miscs_test.go b/tests/falco/miscs_test.go index fc1cc26..1d8079d 100644 --- a/tests/falco/miscs_test.go +++ b/tests/falco/miscs_test.go @@ -19,7 +19,6 @@ limitations under the License. package testfalco import ( - "fmt" "github.com/falcosecurity/testing/pkg/run" "github.com/falcosecurity/testing/tests/data/rules" "os" @@ -104,9 +103,6 @@ func TestFalco_Miscs_HotReload(t *testing.T) { ) assert.NoError(t, falcoRes.Err(), "%s", falcoRes.Stderr()) assert.Equal(t, 0, falcoRes.ExitCode()) - - fmt.Println(falcoRes.Stderr()) - fmt.Println(falcoRes.Stdout()) // We want to be sure that the hot reload was triggered assert.Regexp(t, `SIGHUP received, restarting...`, falcoRes.Stderr()) } From ec48bd37fc9a0aff3c878472e0f1f4d3d296cbde Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 9 May 2024 14:41:39 +0200 Subject: [PATCH 2/2] fix(tests/falco): run hot reload test with nodriver engine. Signed-off-by: Federico Di Pierro --- tests/falco/miscs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/falco/miscs_test.go b/tests/falco/miscs_test.go index 1d8079d..2feb954 100644 --- a/tests/falco/miscs_test.go +++ b/tests/falco/miscs_test.go @@ -99,7 +99,7 @@ func TestFalco_Miscs_HotReload(t *testing.T) { falco.WithConfig(hotReloadCfg), falco.WithRules(rules.SingleRule), falco.WithStopAfter(5*time.Second), - falco.WithArgs("-o", "engine.kind=modern_ebpf"), + falco.WithArgs("-o", "engine.kind=nodriver"), ) assert.NoError(t, falcoRes.Err(), "%s", falcoRes.Stderr()) assert.Equal(t, 0, falcoRes.ExitCode())