changeset 1137:129b9e4ca3b3

Tests: reduced race in proxy_cache_use_stale tests.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 27 Feb 2017 14:06:36 +0300
parents 56d5efd16af6
children d6acd17ca4e3
files proxy_cache_use_stale.t
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/proxy_cache_use_stale.t
+++ b/proxy_cache_use_stale.t
@@ -150,6 +150,7 @@ like(http_get('/t5.html'), qr/REVALIDATE
 $t->write_file('t6.html', 'SEE-THAT');
 
 my $s = get('/t6.html', 'max-age=1, stale-while-revalidate=2', start => 1);
+select undef, undef, undef, 0.2;
 like(http_get('/t6.html'), qr/UPDATING.*SEE-THIS/s, 's-w-r - updating');
 like(http_end($s), qr/STALE.*SEE-THIS/s, 's-w-r - updating stale');
 like(http_get('/t6.html'), qr/HIT.*SEE-THAT/s, 's-w-r - updating revalidated');