Subject: | date bug in t/cdbi-t/10-mysql.t |
Class::DBI::Sweet 0.5, perl 8.5.6, Linux 2.6
Some mysql tests fail because the CURDATE() retrieved from mysql takes time zone into consideration, and it seems the date in the script does not (thats my guess anyway). I was able to pass the tests by setting my clock back -6:00 temporarily.
Here is the failing lines during the test where you can see the dates differ slightly:
t/cdbi-t/10-mysql.....................NOK 11
# Failed test (t/cdbi-t/10-mysql.t at line 32)
# got: '2005-08-11'
# expected: '2005-08-12'
t/cdbi-t/10-mysql.....................NOK 12
# Failed test (t/cdbi-t/10-mysql.t at line 34)
# got: '2005-08-11'
# expected: '2005-08-12'
t/cdbi-t/10-mysql.....................ok 64/64# Looks like you failed 2 tests of 64.