commit | 64549ca18f17ef5b441114490d53ae2cf68c255c | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Fri Mar 23 20:28:26 2012 +0400 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Fri Mar 23 20:28:26 2012 +0400 |
tree | 28e72cd90d87c6e90190ee4c89a5d7645d912c28 | |
parent | 57d784c59f00822a2b6d7211735a369e7b4b709b [diff] |
Tests: eliminate race in proxy_cache_lock.t startup.
diff --git a/proxy_cache_lock.t b/proxy_cache_lock.t index 4489452..6b47c60 100644 --- a/proxy_cache_lock.t +++ b/proxy_cache_lock.t
@@ -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++;