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 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/376607 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=62e818ab148 0c9c3584d342cda 0872949a46368f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 62e818ab1480c9c 3584d342cda0872 949a46368f
Author: Diana Clarke <email address hidden>
Date: Mon Sep 26 11:51:52 2016 -0400
Fix database poison warnings, part 19
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 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: I4181775eb0e89e 8a21e6af8dddb3c 9ffd09a6b83
Related-Bug: #1568414