Mercurial > hg > nginx-tests
diff proxy_cache.t @ 233:1a5574d84917
Tests: tweak various timeouts and replace sleep() with select().
Hopefully this will result in less spurious test failures, in particular
on our Solaris VM.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 10 Sep 2012 20:18:05 +0400 |
parents | ba992cfdc606 |
children | 6a0d934950bc |
line wrap: on
line diff
--- a/proxy_cache.t +++ b/proxy_cache.t @@ -101,7 +101,7 @@ like(http_get_range('/t.html', 'Range: b like(http_get('/empty.html'), qr/HTTP/, 'empty get first'); like(http_get('/empty.html'), qr/HTTP/, 'empty get second'); -sleep(2); +select(undef, undef, undef, 1.1); unlink $t->testdir() . '/t.html'; like(http_gzip_request('/t.html'), qr/HTTP.*1c\x0d\x0a.{28}\x0d\x0a0\x0d\x0a\x0d\x0a\z/s,