Skip Menu |

This queue is for tickets about the Courriel CPAN distribution.

Report information
The Basics
Id: 70395
Status: resolved
Priority: 0/
Queue: Courriel

People
Owner: Nobody in particular
Requestors: MXEY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.16
  • 0.17
  • 0.18
Fixed in: 0.19



Subject: Timezone-related test failure on in t/Courriel.t on Debian
Debian includes the Courriel distribution as libcourriel-perl, but we (Debian Perl Group) have a timezone-related test failure: # Failed test 'email datetime is parsed from Date header correctly' # at t/Courriel.t line 164. # got: '2011-05-29T16:22:22' # expected: '2011-05-29T11:22:22' # Failed test 'email datetime is parsed from Resent-Date header correctly' # at t/Courriel.t line 251. # got: '2011-05-29T16:22:23' # expected: '2011-05-29T11:22:23' # Looks like you failed 2 tests of 59. t/Courriel.t ............... Dubious, test returned 2 (wstat 512, 0x200) We have prevented the failure by applying the attached patch, but I think this is not a proper solution, especially since we don't understand the issue at hand. We would appreciate it if you could provide some insight into this.
Subject: timezone.patch
Description: workaround timezone offset difference Origin: vendor Forwarded: no Author: gregor herrmann <gregoa@debian.org> Last-Update: 2011-08-21 --- a/t/Courriel.t +++ b/t/Courriel.t @@ -171,7 +171,7 @@ minute => 22, second => 22, time_zone => '-0500', - ), + )->set_time_zone('UTC'), 'email datetime is parsed from Date header correctly' ); @@ -258,7 +258,7 @@ minute => 22, second => 23, time_zone => '-0500', - ), + )->set_time_zone('UTC'), 'email datetime is parsed from Resent-Date header correctly' ); }