Mercurial > hg > nginx-tests
comparison proxy_store.t @ 224:ba992cfdc606
Tests: remove TODO from tests which pass in 1.2.x.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 03 Jun 2012 14:47:10 +0400 |
parents | c0ae29632905 |
children | 1a5574d84917 |
comparison
equal
deleted
inserted
replaced
223:f9325406df0b | 224:ba992cfdc606 |
---|---|
73 | 73 |
74 like(http_get('/store-index-nostore.html'), qr/SEE-THIS/, | 74 like(http_get('/store-index-nostore.html'), qr/SEE-THIS/, |
75 'proxy request with x-accel-expires'); | 75 'proxy request with x-accel-expires'); |
76 | 76 |
77 TODO: { | 77 TODO: { |
78 local $TODO = 'patch under review'; | 78 local $TODO = 'patch rejected'; |
79 | 79 |
80 ok(!-e $t->testdir() . '/store-index-nostore.html', 'result not stored'); | 80 ok(!-e $t->testdir() . '/store-index-nostore.html', 'result not stored'); |
81 } | 81 } |
82 | 82 |
83 ok(scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]} == 0, 'no temp files'); | 83 ok(scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]} == 0, 'no temp files'); |
86 sleep(1); | 86 sleep(1); |
87 | 87 |
88 ok(scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]} == 0, | 88 ok(scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]} == 0, |
89 'no temp files after aborted request'); | 89 'no temp files after aborted request'); |
90 | 90 |
91 TODO: { | |
92 local $TODO = 'not fixed yet'; | |
93 | |
94 http_get('/ssi.html', aborted => 1, sleep => 0.1); | 91 http_get('/ssi.html', aborted => 1, sleep => 0.1); |
95 sleep(1); | 92 sleep(1); |
96 | 93 |
97 ok(scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]} == 0, | 94 ok(scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]} == 0, |
98 'no temp files after aborted ssi'); | 95 'no temp files after aborted ssi'); |
99 | 96 |
100 } | |
101 | |
102 ############################################################################### | 97 ############################################################################### |