Browse Source

Try deinit odl_features in TestOdlFeaturesNoFixture setUpClass

test_feature_configs_does_not_mutate_default_features sporadically fails
with the following:
testtools.matchers._impl.MismatchError: {} !=
{'operational-port-status': '', 'bgpvpn-vni': ''}
This patch runs odl_features.deinit at the beginning of the test to run
it on a clean beases.

Change-Id: I2185c30f260f95ef2e0b90c14399260702837f29
Closes-Bug: #1835216
tags/16.0.0.0b1
elajkat 7 months ago
parent
commit
ef695842c9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      networking_odl/tests/unit/common/test_odl_features.py

+ 1
- 0
networking_odl/tests/unit/common/test_odl_features.py View File

@@ -143,6 +143,7 @@ class TestOdlFeaturesNoFixture(base.DietTestCase):
self.addCleanup(odl_features.deinit)

def test_feature_configs_does_not_mutate_default_features(self):
odl_features.deinit()
self.assertEqual(odl_features.EMPTY_FEATURES,
odl_features.feature_configs)
odl_features.feature_configs['test'] = True

Loading…
Cancel
Save