changeset 451:be98c162f8bc

Tests: adjusted access_log test timeout.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 20 Aug 2014 14:01:08 +0400
parents 9e26d5b10fb3
children 4465c1cf6f75
files access_log.t
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/access_log.t
+++ b/access_log.t
@@ -115,7 +115,12 @@ http_get('/varlog?logname=0');
 http_get('/varlog?logname=filename');
 
 
-select undef, undef, undef, 0.1;
+# wait for file to appear with nonzero size thanks to the flush parameter
+
+for (1 .. 10) {
+	last if -s $t->testdir() . '/compressed.log';
+	select undef, undef, undef, 0.1;
+}
 
 # verify that "gzip" parameter turns on compression