Bug 19455 - Circulation/SwitchOnSiteCheckouts.t is failing randomly
Summary: Circulation/SwitchOnSiteCheckouts.t is failing randomly
Status: Pushed to Master
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal (vote)
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-12 14:18 UTC by Jonathan Druart
Modified: 2017-10-12 14:22 UTC (History)
0 users

See Also:
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 (1.17 KB, patch)
2017-10-12 14:21 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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