# HG changeset patch # User Maxim Dounin # Date 1348584783 -14400 # Node ID 5ac875a3088ee97d4c9e8a6b2c01dce0747ddc02 # Parent 8d58b624a1425818c66bbdd766b57745a32799da Tests: improve proxy_store.t timeouts a bit. Now we wait a bit more on slow hosts to avoid spurious failures. diff --git a/proxy_store.t b/proxy_store.t --- a/proxy_store.t +++ b/proxy_store.t @@ -83,13 +83,19 @@ ok(!-e $t->testdir() . '/store-index-nos ok(scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]} == 0, 'no temp files'); http_get('/store-index-big.html', aborted => 1, sleep => 0.1); + select(undef, undef, undef, 0.5); +select(undef, undef, undef, 2.5) + if scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]}; ok(scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]} == 0, 'no temp files after aborted request'); http_get('/ssi.html', aborted => 1, sleep => 0.1); + select(undef, undef, undef, 0.5); +select(undef, undef, undef, 2.5) + if scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]}; ok(scalar @{[ glob $t->testdir() . '/proxy_temp/*' ]} == 0, 'no temp files after aborted ssi');