Subject: | adaptive year test failure |
Date: | Thu, 2 Jan 2014 09:31:45 +0000 |
To: | bug-HTML-FormHandler [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
HTML-FormHandler started failing t/compound/basic.t on 2014-01-01. This
is because it tests a date-selection form, HTML::FormHandler::Field::Year
automatically offers a range starting five years before the current year,
and the test makes a hardcoded selection of 2008. Attached patch fixes,
by making the test adaptively select the current year. (Race condition
means that it's not necessarily selecting the same current year that
H:F:F:Y chose, but it's not likely to exceed the permitted range.)
-zefram
Message body is not shown because sender requested not to inline it.