Bug 25729: Prevent Charges/Fees.t to fail on slow server
We must use t::lib::Dates::compare to compare dates Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commitfcd659b2d4) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitddfec0a706) Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
This commit is contained in:
parent
63e28d62bd
commit
e1df84e9ec
|
|
@ -25,6 +25,7 @@ use Test::Warn;
|
|||
|
||||
use t::lib::Mocks;
|
||||
use t::lib::TestBuilder;
|
||||
use t::lib::Dates;
|
||||
|
||||
use Time::Fake;
|
||||
use C4::Calendar;
|
||||
|
|
@ -196,7 +197,7 @@ subtest 'new' => sub {
|
|||
to_date => $dt_to,
|
||||
}
|
||||
);
|
||||
is( $fees->from_date, dt_from_string(),
|
||||
is( t::lib::Dates::compare($fees->from_date, dt_from_string()), 0,
|
||||
'from_date default set correctly to today' );
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue