Bug 29759: (QA follow-up) Remove abs from the test

Obviously abs has two sides, and we could allow wrong results. We
can be more precise here.
Trivial exercise.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Marcel de Rooy 2022-01-11 14:31:27 +00:00 committed by Fridolin Somers
parent 3ac2e046e8
commit c33621f2d2
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ subtest 'cancel() tests' => sub {
is( $ar->cancellation_reason, $reason, 'Cancellation reason stored correctly' );
is( $ar->notes, $notes, 'Notes stored correctly' );
is( abs $patron->account->balance, $payed_amount, 'The patron has been refunded the right value' );
is( $patron->account->balance, -$payed_amount, 'The patron has a credit balance' );
$schema->storage->txn_rollback;
};