]> git.koha-community.org Git - koha.git/commit
Bug 12782: (followup) skip tests that fail because of provider's error
authorTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 18 Aug 2014 20:20:24 +0000 (17:20 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 20 Aug 2014 15:29:27 +0000 (12:29 -0300)
commit8193c40b9dc8f952ff0774d8503bd0e018cf7c05
tree427d6a5bc3242ffd453cc1adee71e2a19c24435e
parenteca3f6d37c24b5a510d26e0a0b8e0233420fe03a
Bug 12782: (followup) skip tests that fail because of provider's error

It seems that XISBN is failing sometimes, if you run the tests a couple
of times in a row. An error 500 is raised by lwp.

This problem should be trapped and related tests skipped. Because too much
noise could make people pay no attention to this tests failing.

To reproduce:
- Run the tests several consecutive times:
  $ prove -v t/db_dependent/XISBN.t
=> FAIL: XISBN test will fail eventually, printing a networking-related warning.
- Apply the patch
- Repeat the test
=> SUCCESS: when XISBN the networking/connection refused problem arises, the test
  is skipped, and it still passes.

Regards
To+

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/db_dependent/XISBN.t