]> git.koha-community.org Git - koha.git/commit
Bug 18826: rollback transaction for api tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 12 Jul 2017 20:24:24 +0000 (17:24 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Jul 2017 16:14:55 +0000 (13:14 -0300)
commitd5dc473382ccfa118e78e91507384245ce0dcfcb
treeecf94fc7be4e67b809f959f677cab4b3334543ea
parentf55b8493460116c06e88058af6d86de6700c7b37
Bug 18826: rollback transaction for api tests

The holds.t tests for the REST api do no rollback properly and modify
the DB (no cleanup).
This comes from a bug caused by SessionStorage = mysql (default)

The error is:
    "rollback ineffective with AutoCommit enabled"

Test plan:
  select count(*) from borrowers;
  prove t/db_dependent/api/v1/holds.t
  select count(*) from borrowers;
=> The number of entry must be the same before and after the tests have
been executed

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/api/v1/holds.t
t/db_dependent/api/v1/patrons.t