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:
Tomas Cohen Arazi 2018-07-06 09:22:29 -03:00 committed by Martin Renvoize
parent 450a2e7592
commit 8063bec2a8
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 3 additions and 3 deletions

View File

@ -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;
};