mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
test: nginx: Increses the timeout while reading the audit log.
Audit logs are taking too long to be written on the disk. One of the consequence of that is to have tests that demands to read from audit log failing. Increase the timeout makes it wait a little bit more for the logs before gave up.
This commit is contained in:
parent
3cf1701794
commit
8e390899e0
@ -457,6 +457,14 @@ sub match_log {
|
|||||||
|
|
||||||
$timeout = 0 unless (defined $timeout);
|
$timeout = 0 unless (defined $timeout);
|
||||||
|
|
||||||
|
# Audit logs are taking too long to be written on the disk. One of the
|
||||||
|
# consequence of that is to have tests that demands to read from audit
|
||||||
|
# log failing. Increase the timeout here, make it wait a little bit
|
||||||
|
# more for the logs before gave up.
|
||||||
|
if ($name eq "audit") {
|
||||||
|
$timeout = 20;
|
||||||
|
}
|
||||||
|
|
||||||
my $i = 0;
|
my $i = 0;
|
||||||
my $graphed = 0;
|
my $graphed = 0;
|
||||||
READ: {
|
READ: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user