# HG changeset patch # User Maxim Dounin # Date 1332520106 -14400 # Node ID 4ac0807cc3cf164b8e3c3adca50801d0c78c9456 # Parent a7cc4371f4ad69b0f8fc31aea8aa226f25d32773 Tests: eliminate race in proxy_cache_lock.t startup. diff --git a/proxy_cache_lock.t b/proxy_cache_lock.t --- a/proxy_cache_lock.t +++ b/proxy_cache_lock.t @@ -76,6 +76,7 @@ eval { plan(skip_all => 'no proxy_cache_lock') if $@; $t->plan(19); +$t->waitforsocket('127.0.0.1:8081'); ############################################################################### @@ -199,6 +200,8 @@ sub http_fake_daemon { last if /^\x0d?\x0a?$/; } + next unless $uri; + sleep(1); $num++;