X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=t%2F09-load-threads.t;h=60d6acf1499c30757e77ad51ae3b4cd7fca6f4f3;hp=65a5d2d09a7d728449a44d80f3c222bdb5139b4f;hb=0aba0d53f2d474b5ae53796000cc42b666d3983e;hpb=ebe9eedb7d7e7f6acaae37c8dbb5c373e9fb6026 diff --git a/t/09-load-threads.t b/t/09-load-threads.t index 65a5d2d..60d6acf 100644 --- a/t/09-load-threads.t +++ b/t/09-load-threads.t @@ -178,14 +178,12 @@ sub sync_master { LOCK: { lock $locks_up[$id]; - for (1 .. 100) { - my $timeout = time() + 2; - until ($locks_up[$id] == $peers) { - if (cond_timedwait $locks_up[$id], $timeout) { - last LOCK; - } else { - return 0; - } + my $timeout = time() + 10; + until ($locks_up[$id] == $peers) { + if (cond_timedwait $locks_up[$id], $timeout) { + last LOCK; + } else { + return 0; } } }