]> git.koha-community.org Git - koha.git/commit
Bug 24817: Add sleep between db create actions
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 6 Mar 2020 08:25:39 +0000 (08:25 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 9 Mar 2020 10:38:28 +0000 (10:38 +0000)
commit79f2230c5dbb867f56f278883c8d527c9944c236
tree35660a26b259025de8d8a822ca76f5027bb90ad7
parentb952563a3bdb8581a066bcff51b274d1ce614f5f
Bug 24817: Add sleep between db create actions

We need to allow some time to pass between calls that add cash register
lines to accountlines or cash_register_actions. We use database level
triggers to maintain the timestamp fields, so cannot use Time::Fake, and
the methods we are testing assume that, as human interactions, there
will be at least a second between the last 'sale' on a cash register and
the 'cashup' of that same cash register.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Cash/Register.pm
t/db_dependent/Koha/Cash/Register.t