From 8e390899e09cee4cf55be46e2e01a72da105f032 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 10 Jan 2014 07:54:19 -0800 Subject: [PATCH] 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. --- tests/run-regression-tests-nginx.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/run-regression-tests-nginx.pl b/tests/run-regression-tests-nginx.pl index 967a2c88..7b2604e3 100755 --- a/tests/run-regression-tests-nginx.pl +++ b/tests/run-regression-tests-nginx.pl @@ -457,6 +457,14 @@ sub match_log { $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 $graphed = 0; READ: {