Bug 20980: (QA follow-up) Do not delete existing data on tests fix
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 8a83f1e1a9)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
450a2e7592
commit
8063bec2a8
|
|
@ -83,7 +83,7 @@ subtest 'outstanding_debits() tests' => sub {
|
|||
|
||||
subtest 'add_credit() tests' => sub {
|
||||
|
||||
plan tests => 13;
|
||||
plan tests => 15;
|
||||
|
||||
$schema->storage->txn_begin;
|
||||
|
||||
|
|
@ -151,8 +151,8 @@ subtest 'add_credit() tests' => sub {
|
|||
}
|
||||
);
|
||||
|
||||
is( $schema->resultset('ActionLog')->count(), 2, 'Log was added' );
|
||||
is( $schema->resultset('Statistic')->count(), 2, 'No action added to statistics, because of credit type' );
|
||||
is( $schema->resultset('ActionLog')->count(), $action_logs + 2, 'Log was added' );
|
||||
is( $schema->resultset('Statistic')->count(), $statistics + 2, 'No action added to statistics, because of credit type' );
|
||||
|
||||
$schema->storage->txn_rollback;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue