From f1b62cbb186b097502e95204511cbe32e111524b Mon Sep 17 00:00:00 2001
From: Tomas Cohen Arazi <tomascohen@theke.io>
Date: Fri, 6 Jul 2018 09:22:29 -0300
Subject: [PATCH] Bug 20980: (QA follow-up) Do not delete existing data on
 tests fix

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
---
 t/db_dependent/Koha/Account.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/db_dependent/Koha/Account.t b/t/db_dependent/Koha/Account.t
index d51ef9ff6a..492a1ebbdc 100755
--- a/t/db_dependent/Koha/Account.t
+++ b/t/db_dependent/Koha/Account.t
@@ -187,8 +187,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(), $action_logs + 2, 'No action added to statistics, because of credit type' );
 
     $schema->storage->txn_rollback;
 };
-- 
2.18.0