[Koha-bugs] [Bug 14256] Tests for TestBuilder fail randomly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 4 14:30:20 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14256

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #39835|0                           |1
        is obsolete|                            |

--- Comment #18 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 39854
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39854&action=edit
[SIGNED OFF] Bug 14256: Check for unique constraint to regenerate random data

Unique constraints should be checked when creating random data. Otherwise
we get failures when the generated data already exists on the DB.

This patch takes advantage of ->unique_constraints() to do the job,
looping through all the unique constraints defined for the source.

Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list