From 65616d2ea5f7469103e660cd3a17cb2c1c065b1e Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 21 Jun 2017 21:54:00 +0100 Subject: fix slow tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit precision2.t only worked in 2010… --- t/precision.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 't/precision.t') diff --git a/t/precision.t b/t/precision.t index 751e1d6..bc01821 100644 --- a/t/precision.t +++ b/t/precision.t @@ -10,9 +10,11 @@ else { plan skip_all => 'Slow test, set $ENV{SLOW_TESTS} to run it'; } +my $formatter= DateTime::Format::GeekTime->new(2010); + for my $i (0..65535) { my $gkt=sprintf '0x%04X on day 0x000',$i; - my $dt=DateTime::Format::GeekTime->parse_datetime($gkt); - my $round_trip=DateTime::Format::GeekTime->format_datetime($dt); + my $dt=$formatter->parse_datetime($gkt); + my $round_trip=$formatter->format_datetime($dt); is(substr($round_trip,0,19),$gkt); } -- cgit v1.2.3