TestMainRunsWAF starts waf in a process of its own, past run, so its Core Rule Set stayed in block mode. On a busy host its inspection could pass waf's 500 ms limit for its checks, and the test's one question got 503 instead of 200. Model: opus-5-5
This commit is contained in:
1 parent
445477f333
commit
7e16fcd28b
1 file changed
+3
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user