]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 27 Jul 2017 10:06:49 +0000 (12:06 +0200)
commitda0ed1cba584a7eb182876d75ccd535bbd5d5b35
tree63a760716ef4a0ae9fd77a2c051d6936e5d2ef39
parent7943a4500d45344e5ac4b02d2075ae039faf3d83
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>
(cherry picked from commit d5dc473382ccfa118e78e91507384245ce0dcfcb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/api/v1/holds.t
t/db_dependent/api/v1/patrons.t