commit 3e3bd32d74ed77fea9b4e14c0d3ab5c15bb91c27
Author: Alex Kavanagh <email address hidden>
Date: Wed Nov 3 13:58:00 2021 +0000
Fix SQLite locking issue on unit tests
stestr runs tests in parallel and this can cause issues with locking
when SQLite is not mocked out properly and gets used in a test. This
patch just switches Storage to use :memory: so that locking does not
occur.
Closes-Bug: #1908282
Change-Id: Iaa1c7b78dee498e0cc6dc6fccf12e74f22225ecd
(cherry picked from commit 36ef217bc620bebe4475dbb1453d3c82ac5b9d73)
Reviewed: https:/ /review. opendev. org/c/openstack /charm- nova-cloud- controller/ +/863614 /opendev. org/openstack/ charm-nova- cloud-controlle r/commit/ 3e3bd32d74ed77f ea9b4e14c0d3ab5 c15bb91c27
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 3e3bd32d74ed77f ea9b4e14c0d3ab5 c15bb91c27
Author: Alex Kavanagh <email address hidden>
Date: Wed Nov 3 13:58:00 2021 +0000
Fix SQLite locking issue on unit tests
stestr runs tests in parallel and this can cause issues with locking
when SQLite is not mocked out properly and gets used in a test. This
patch just switches Storage to use :memory: so that locking does not
occur.
Closes-Bug: #1908282 e0cc6dc6fccf12e 74f22225ecd e4475dbb1453d3c 82ac5b9d73)
Change-Id: Iaa1c7b78dee498
(cherry picked from commit 36ef217bc620beb