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 the warnings from:
unit.virt.xenapi.test_xenapi.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/347531 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d98096bd923 71ac9ef95cf61b6 83ba048ce07fe3
Committed: https:/
Submitter: Jenkins
Branch: master
commit d98096bd92371ac 9ef95cf61b683ba 048ce07fe3
Author: Diana Clarke <email address hidden>
Date: Tue Jul 26 13:21:19 2016 -0600
Fix database poison warnings, part 14
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 the warnings 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: I41537e6b062b16 9cc6934d525560e b96ca58c55b
Related-Bug: #1568414