]> git.koha-community.org Git - koha.git/commit
Bug 13606: Add tests and fix existing ones
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 10 Apr 2015 13:35:54 +0000 (15:35 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 23 Apr 2015 16:18:49 +0000 (13:18 -0300)
commita9ac14658d826b97d470f6be5b4e3a3a33276143
tree45a9dfc595f38c2787c58f4e2a60548a3ff765cb
parentdcfa31d5dc2cb0aa9a12d606ee0205a4e3be5f62
Bug 13606: Add tests and fix existing ones

Some tests were wrong and not executed in a transaction.
Lot of sessions were created in DB because the session was never
flushed.

TEST PLAN
---------
$ mysql ...
> delete from sessions;
^Z
$ prove -v t/db_dependent/BackgroundJob.t
...
$ fg
> select id from sessions;
-- There will be lots of ids (10, if I recall)
^Z
$ git bz apply 13606
...
$ prove -v t/db_dependent/BackgroundJob.t
...
$ fg
> select * from sessions;
-- there should only be the one orphaned job.
   You can tell it is correct by the "making new job".
> quit

Run the koha-qa test tools.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/BackgroundJob.t