Mercurial > hg > nginx-tests
comparison uwsgi.t @ 174:c8169c827d18
Tests: use waitoforsocket() as uwsgi startup may take a while.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 29 Sep 2011 01:29:36 +0400 |
parents | e9133938a5d3 |
children | a01a53bcbf11 |
comparison
equal
deleted
inserted
replaced
173:20d3461de9da | 174:c8169c827d18 |
---|---|
60 '--wsgi-file', $t->testdir() . '/uwsgi_test_app.py', | 60 '--wsgi-file', $t->testdir() . '/uwsgi_test_app.py', |
61 '--logto', $t->testdir() . '/uwsgi_log'); | 61 '--logto', $t->testdir() . '/uwsgi_log'); |
62 | 62 |
63 $t->run(); | 63 $t->run(); |
64 | 64 |
65 $t->waitforsocket('127.0.0.1:8081') | |
66 or die "Can't start uwsgi"; | |
67 | |
65 ############################################################################### | 68 ############################################################################### |
66 | 69 |
67 like(http_get('/'), qr/SEE-THIS/, 'uwsgi request'); | 70 like(http_get('/'), qr/SEE-THIS/, 'uwsgi request'); |
68 unlike(http_head('/head'), qr/SEE-THIS/, 'no data in HEAD'); | 71 unlike(http_head('/head'), qr/SEE-THIS/, 'no data in HEAD'); |
69 | 72 |