Bug 19463: Reduce the chance to have TestBuilder generate twice the same value
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 17 Oct 2017 14:29:06 +0000 (11:29 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 17 Oct 2017 15:16:47 +0000 (12:16 -0300)
commit708d02047d67bc5f8d5b43690c6967cc5e191f82
treeccab0f5fe6fc032b87eb9e97c0e99b541eb505fb
parent6bf390f38c7a0a1ae0be91f72baf7aa284ee0edb
Bug 19463: Reduce the chance to have TestBuilder generate twice the same value

When an id is generated by TestBuilder (branchcode for instance) and the
size of the generated string is 1, we have too many chances to get
"Violation of unique constraint in Branch".

This patch increases the number of retries to 5.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Amended to make room for follow-up.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/lib/TestBuilder.pm