]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/09-load-threads.t
Simplify the timeout logic in t/09-load-threads.t
[perl/modules/Variable-Magic.git] / t / 09-load-threads.t
index 65a5d2d09a7d728449a44d80f3c222bdb5139b4f..60d6acf1499c30757e77ad51ae3b4cd7fca6f4f3 100644 (file)
@@ -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;
    }
   }
  }