From 6ecf3c85cd9e6d65e139be32f26b99361cd6a3c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Wed, 30 Dec 2015 16:29:03 +0100 Subject: [PATCH] Bug 15445 DateUtils.t fails on Jenkins due to server sluggishness Jenkins server is abnormally slow to perform a task done in less than 1s elsewhere. The test stay valid by giving just a bit more time to Jenkins server. TO TEST: - Confirm that the two test hasn't changed. They the just get 4s to perform - Push the patch to master and observe that DateUtils.t doesn't fail anymore. --- t/DateUtils.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/DateUtils.t b/t/DateUtils.t index b82ed02..304f55c 100755 --- a/t/DateUtils.t +++ b/t/DateUtils.t @@ -79,11 +79,11 @@ for ( qw/ 2014-01-01 2100-01-01 9999-01-01 / ) { my $duration = gettimeofday(); $new_dt = dt_from_string($_, 'iso', $dear_dirty_dublin); $duration = gettimeofday() - $duration; - cmp_ok $duration, '<', 1, "Create DateTime with dt_from_string() for $_ with TZ in less than 1s"; + cmp_ok $duration, '<', 4, "Create DateTime with dt_from_string() for $_ with TZ in less than 4s"; $duration = gettimeofday(); output_pref( { dt => $new_dt } ); $duration = gettimeofday() - $duration; - cmp_ok $duration, '<', 1, "Create DateTime with output_pref() for $_ with TZ in less than 1s"; + cmp_ok $duration, '<', 4, "Create DateTime with output_pref() for $_ with TZ in less than 4s"; } $new_dt = dt_from_string( '2011-06-16 12:00', 'sql' ); -- 2.6.2