Bug 21671: Prevent Modifications.t to fail randomly
If repeatable is set to 0 by TestBuilder, the tests will fail with: t/db_dependent/Koha/Patron/Modifications.t .. 1/6 # Looks like you planned 20 tests but ran 9. # Failed test 'approve tests' # at t/db_dependent/Koha/Patron/Modifications.t line 259. [repeatable not set for attribute type and tried to add a new attribute for the same code]# Looks like your test exited with 255 just after 5. Signed-off-by: Liz Rea <wizzyrea@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> (cherry picked from commit914f23970d) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit3f99fb0c4c) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
8e7bd44f94
commit
8ba9c4947c
|
|
@ -146,7 +146,7 @@ subtest 'approve tests' => sub {
|
|||
{ source => 'BorrowerAttributeType', value => { code => 'CODE_1' } }
|
||||
);
|
||||
$builder->build(
|
||||
{ source => 'BorrowerAttributeType', value => { code => 'CODE_2' } }
|
||||
{ source => 'BorrowerAttributeType', value => { code => 'CODE_2', repeatable => 1 } }
|
||||
);
|
||||
my $verification_token = md5_hex( time().{}.rand().{}.$$ );
|
||||
my $valid_json_text
|
||||
|
|
|
|||
Loading…
Reference in New Issue