[Koha-bugs] [Bug 24817] Add sleep calls to Koha::Cash::Register test

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 6 09:29:14 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24817

--- Comment #1 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 100215
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100215&action=edit
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.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list