View | Details | Raw Unified | Return to bug 22917
Collapse All | Expand All

(-)a/t/db_dependent/Circulation.t (-2 / +5 lines)
Lines 53-58 $schema->storage->txn_begin; Link Here
53
my $builder = t::lib::TestBuilder->new;
53
my $builder = t::lib::TestBuilder->new;
54
my $dbh = C4::Context->dbh;
54
my $dbh = C4::Context->dbh;
55
55
56
# Prevent random failures by mocking ->now
57
my $now_value       = DateTime->now();
58
my $mocked_datetime = Test::MockModule->new('DateTime');
59
$mocked_datetime->mock( 'now', sub { return $now_value->clone; } );
60
56
# Start transaction
61
# Start transaction
57
$dbh->{RaiseError} = 1;
62
$dbh->{RaiseError} = 1;
58
63
Lines 1915-1921 subtest 'AddReturn + suspension_chargeperiod' => sub { Link Here
1915
            item            => $item_1,
1920
            item            => $item_1,
1916
            library         => $library,
1921
            library         => $library,
1917
            patron          => $patron,
1922
            patron          => $patron,
1918
            due_date        => dt_from_string->add(minutes=> 1),
1919
            return_date     => dt_from_string->add(days => 5),
1923
            return_date     => dt_from_string->add(days => 5),
1920
            expiration_date => dt_from_string->add(days => 5 + (5 * 2 - 1) ),
1924
            expiration_date => dt_from_string->add(days => 5 + (5 * 2 - 1) ),
1921
        }
1925
        }
1922
- 

Return to bug 22917