Mercurial > hg > nginx-tests
changeset 213:4ac0807cc3cf
Tests: eliminate race in proxy_cache_lock.t startup.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 23 Mar 2012 20:28:26 +0400 |
parents | a7cc4371f4ad |
children | 35d050d7d5f1 |
files | proxy_cache_lock.t |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/proxy_cache_lock.t Fri Mar 23 20:24:13 2012 +0400 +++ b/proxy_cache_lock.t Fri Mar 23 20:28:26 2012 +0400 @@ -76,6 +76,7 @@ plan(skip_all => 'no proxy_cache_lock') if $@; $t->plan(19); +$t->waitforsocket('127.0.0.1:8081'); ############################################################################### @@ -199,6 +200,8 @@ last if /^\x0d?\x0a?$/; } + next unless $uri; + sleep(1); $num++;