[Koha-bugs] [Bug 18009] New: IssueSlip.t test fails if launched between 00:00 and 00: 59
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Jan 29 02:54:53 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18009
Bug ID: 18009
Summary: IssueSlip.t test fails if launched between 00:00 and
00:59
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Test Suite
Assignee: chris at bigballofwax.co.nz
Reporter: mtj at kohaaloha.com
QA Contact: gmcharlt at gmail.com
here's an example of the test passing then failing with 2 different dates.
-------------------------
vagrant at kohadevbox:~$ sudo date -s 'Sun Jan 29 01:41:55 UTC 2017'
Sun Jan 29 01:41:55 GMT 2017
kohadev-koha at kohadevbox:/home/vagrant/kohaclone$ prove
t/db_dependent/Members/IssueSlip.t
t/db_dependent/Members/IssueSlip.t .. ok
All tests successful.
Files=1, Tests=3, 3 wallclock secs ( 0.03 usr 0.00 sys + 2.10 cusr 0.12
csys = 2.25 CPU)
Result: PASS
-------------------------
vagrant at kohadevbox:~$ sudo date -s 'Sun Jan 29 00:41:55 UTC 2017'
Sun Jan 29 00:41:55 GMT 2017
kohadev-koha at kohadevbox:/home/vagrant/kohaclone$ prove
t/db_dependent/Members/IssueSlip.t
t/db_dependent/Members/IssueSlip.t .. # Looks like you planned 2 tests
but ran 1.
# Failed test 'Hourly loans'
# at t/db_dependent/Members/IssueSlip.t line 279.
# Looks like you failed 1 test of 3.
t/db_dependent/Members/IssueSlip.t .. 1/3
# Failed test 'Issue slip'
# at t/db_dependent/Members/IssueSlip.t line 281.
The 'hour' parameter ("-1") to DateTime::set did not pass the 'an integer
between 0 and 23' callback
at /usr/lib/x86_64-linux-gnu/perl5/5.20/DateTime.pm line 1946.
DateTime::set(undef, "hour", -1) called at
t/db_dependent/Members/IssueSlip.t line 254
main::__ANON__() called at /usr/local/share/perl/5.20.2/Test/Builder.pm
line 309
eval {...} called at /usr/local/share/perl/5.20.2/Test/Builder.pm line
309
Test::Builder::subtest(Test::Builder=HASH(0x1cfa9d0), "Hourly loans",
CODE(0x85c7ea0)) called at /usr/local/share/perl/5.20.2/Test/More.pm line 807
Test::More::subtest("Hourly loans", CODE(0x85c7ea0)) called at
t/db_dependent/Members/IssueSlip.t line 279
main::__ANON__() called at /usr/local/share/perl/5.20.2/Test/Builder.pm
line 309
eval {...} called at /usr/local/share/perl/5.20.2/Test/Builder.pm line
309
Test::Builder::subtest(Test::Builder=HASH(0x1cfa9d0), "Issue slip",
CODE(0x86031c8)) called at /usr/local/share/perl/5.20.2/Test/More.pm line 807
Test::More::subtest("Issue slip", CODE(0x86031c8)) called at
t/db_dependent/Members/IssueSlip.t line 281
# Looks like your test exited with 255 just after 1.
t/db_dependent/Members/IssueSlip.t .. Dubious, test returned 255 (wstat 65280,
0xff00)
Failed 3/3 subtests
Test Summary Report
-------------------
t/db_dependent/Members/IssueSlip.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 3 tests but ran 1.
Files=1, Tests=1, 2 wallclock secs ( 0.02 usr 0.00 sys + 1.79 cusr 0.08
csys = 1.89 CPU)
Result: FAIL
-------------------------
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list