diff --git a/internal/sww/waf_test.go b/internal/sww/waf_test.go index ab825cf..280d62e 100644 --- a/internal/sww/waf_test.go +++ b/internal/sww/waf_test.go @@ -90,6 +90,7 @@ func TestMainRunsWAF(t *testing.T) { cmd := exec.CommandContext(t.Context(), binary) cmd.Stdout = out + // The Core Rule Set is off, for the reason run gives. cmd.Env = append(os.Environ(), "TZ="+zone, commandForMain+"="+wafCommand, @@ -97,7 +98,8 @@ func TestMainRunsWAF(t *testing.T) { stateDir+"="+dir, cacheDir+"="+dir, ruleFilesDir+"="+t.TempDir(), - lookupSource+"=off") + lookupSource+"=off", + "SWW_WAF_CORE_RULE_SET_MODE=off") exited := startProcess(t, cmd)