Bug 19455

Summary: Circulation/SwitchOnSiteCheckouts.t is failing randomly
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Test SuiteAssignee: Jonathan Druart <jonathan.druart>
Status: Pushed to Master --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19423
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19403
Whiteboard:
Change sponsored?: --- Patch complexity: ---
Bot Control: --- When did the bot last check this:
Who signed the patch off: Text to go in the release notes:
Attachments: Bug 19455: Prevent SwitchOnSiteCheckouts.t to fail randomly

Description Jonathan Druart 2017-10-12 14:18:55 UTC
#   Failed test 'Do not renew on-site checkouts'
#   at t/db_dependent/Circulation/SwitchOnSiteCheckouts.t line 103.
#          got: undef
#     expected: '1'

#   Failed test 'If SwitchOnSiteCheckouts, switch the on-site checkout'
#   at t/db_dependent/Circulation/SwitchOnSiteCheckouts.t line 107.
#          got: undef
#     expected: '1'

#   Failed test 'Specific case 1 - Switch is allowed'
#   at t/db_dependent/Circulation/SwitchOnSiteCheckouts.t line 131.
#          got: undef
#     expected: '1'

#   Failed test 'Not a specific case, $delta should not be incremented'
#   at t/db_dependent/Circulation/SwitchOnSiteCheckouts.t line 146.
#          got: undef
#     expected: 'TOO_MANY_CHECKOUTS'

#   Failed test 'Specific case 2 - Switch is allowed'
#   at t/db_dependent/Circulation/SwitchOnSiteCheckouts.t line 159.
#          got: undef
#     expected: '1'
# Looks like you failed 5 tests of 10.
[19:29:48] t/db_dependent/Circulation/SwitchOnSiteCheckouts.t
Comment 1 Jonathan Druart 2017-10-12 14:21:24 UTC
Created attachment 68014 [details] [review]
Bug 19455: Prevent SwitchOnSiteCheckouts.t to fail randomly

If categorycode is 'X', the test will fail

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 2 Jonathan Druart 2017-10-12 14:22:22 UTC
Pushed to master for 17.11