Mercurial > hg > nginx-tests
comparison fastcgi_keepalive.t @ 295:6fe0459b6668
Tests: eliminate startup races in proxy and fastcgi tests.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 08 Jun 2013 07:02:11 +0400 |
parents | 94f8ee2f6688 |
children | e7dc8f4d0a4b |
comparison
equal
deleted
inserted
replaced
294:71e275487aeb | 295:6fe0459b6668 |
---|---|
51 } | 51 } |
52 | 52 |
53 EOF | 53 EOF |
54 | 54 |
55 $t->run_daemon(\&fastcgi_test_daemon); | 55 $t->run_daemon(\&fastcgi_test_daemon); |
56 $t->run(); | 56 $t->run()->waitforsocket('127.0.0.1:8081'); |
57 | |
58 $t->waitforsocket('127.0.0.1:8081') | |
59 or die "Can't start test backend"; | |
60 | 57 |
61 ############################################################################### | 58 ############################################################################### |
62 | 59 |
63 like(http_get('/'), qr/SEE-THIS/, 'fastcgi request'); | 60 like(http_get('/'), qr/SEE-THIS/, 'fastcgi request'); |
64 like(http_get('/redir'), qr/302/, 'fastcgi redirect'); | 61 like(http_get('/redir'), qr/302/, 'fastcgi redirect'); |