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:
parent
3ac2e046e8
commit
c33621f2d2
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue