The following warning appears in the unit test logs a number of times.
"UserWarning: This test uses methods that set internal oslo_db
state, but it does not claim to use the database. This will conflict
with the setup of tests that do use the database and cause failures
later."
This patch fixes all the warnings (12 new ones) from:
nova.tests.unit.virt.ironic.test_driver.py
Note that this warning is only emitted once per unit test worker, so new
offenders will show up in the logs each time you fix a test until they
are all gone.
Reviewed: https:/ /review. openstack. org/391474 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b85f235515f 7a56a42a864ea7a 5bdd3f0f7b7835
Committed: https:/
Submitter: Jenkins
Branch: master
commit b85f235515f7a56 a42a864ea7a5bdd 3f0f7b7835
Author: Diana Clarke <email address hidden>
Date: Fri Oct 28 09:31:13 2016 -0400
Fix database poison warnings, part 23
The following warning appears in the unit test logs a number of times.
state, but it does not claim to use the database. This will conflict
with the setup of tests that do use the database and cause failures
later."
This patch fixes all the warnings (12 new ones) from:
Note that this warning is only emitted once per unit test worker, so new
offenders will show up in the logs each time you fix a test until they
are all gone.
Change-Id: I2f11c85a3fd192 d93f010b781af60 b78ff6914b9
Related-Bug: #1568414