changeset 236:5ac875a3088e

Tests: improve proxy_store.t timeouts a bit. Now we wait a bit more on slow hosts to avoid spurious failures.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 25 Sep 2012 18:53:03 +0400
parents 8d58b624a142
children 90af19544dd2
files proxy_store.t
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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');