Mercurial > hg > ngx_http_upstream_keepalive
comparison t/fastcgi-keepalive.t @ 15:4fe7e417c424
Keepalive: fix fastcgi tests to be actually TODO.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 23 Apr 2009 05:05:06 +0400 |
parents | 28af4b0b32c1 |
children | 28f882414188 |
comparison
equal
deleted
inserted
replaced
14:28af4b0b32c1 | 15:4fe7e417c424 |
---|---|
54 $t->run_daemon(\&fastcgi_test_daemon); | 54 $t->run_daemon(\&fastcgi_test_daemon); |
55 $t->run(); | 55 $t->run(); |
56 | 56 |
57 ############################################################################### | 57 ############################################################################### |
58 | 58 |
59 { | |
60 local $TODO = 'needs experimental patches'; | |
61 local $SIG{__WARN__} = sub {}; | |
62 | |
59 like(http_get('/'), qr/SEE-THIS/, 'fastcgi request'); | 63 like(http_get('/'), qr/SEE-THIS/, 'fastcgi request'); |
60 like(http_get('/redir'), qr/302/, 'fastcgi redirect'); | 64 like(http_get('/redir'), qr/302/, 'fastcgi redirect'); |
61 like(http_get('/'), qr/^request: 3$/m, 'fastcgi third request'); | 65 like(http_get('/'), qr/^request: 3$/m, 'fastcgi third request'); |
62 | |
63 { | |
64 local $TODO = 'needs experimental patches'; | |
65 | 66 |
66 like(http_get('/single'), qr/^connection: 1$/m, 'single connection used'); | 67 like(http_get('/single'), qr/^connection: 1$/m, 'single connection used'); |
67 | 68 |
68 } | 69 } |
69 | 70 |
73 | 74 |
74 unlike(http_head('/head'), qr/SEE-THIS/, 'no data in HEAD'); | 75 unlike(http_head('/head'), qr/SEE-THIS/, 'no data in HEAD'); |
75 | 76 |
76 { | 77 { |
77 local $TODO = 'needs experimental patches'; | 78 local $TODO = 'needs experimental patches'; |
79 local $SIG{__WARN__} = sub {}; | |
78 | 80 |
79 like(http_get('/after'), qr/^connection: 2$/m, 'new connection after HEAD'); | 81 like(http_get('/after'), qr/^connection: 2$/m, 'new connection after HEAD'); |
82 | |
80 } | 83 } |
81 | 84 |
82 ############################################################################### | 85 ############################################################################### |
83 | 86 |
84 # Simple FastCGI responder implementation. Unlike FCGI and FCGI::Async it's | 87 # Simple FastCGI responder implementation. Unlike FCGI and FCGI::Async it's |