This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
re/user_prop_race_thr.t: reduce timeout
authorDavid Mitchell <davem@iabyn.com>
Tue, 19 Feb 2019 09:12:33 +0000 (09:12 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 19 Feb 2019 09:12:33 +0000 (09:12 +0000)
This new test script has a test that's supposed to exercise an up-to 10s
wait-and-retry loop when loading properties. It has a 500s timeout
built-in for if that fails. On my system its been intermittently
failing (not sure if due to something I'm doing or a problem with the
test or with regcomp.c) which effectively hangs the test run.

So decrease the timeout to 25 secs.

t/re/user_prop_race_thr.t

index 18d3eb5..c240a59 100644 (file)
@@ -95,7 +95,7 @@ require threads;
 
             state $which = 0;
 
-            sleep(500) unless $which++;
+            sleep(25) unless $which++;
             return "0042";
         }