Fix FIB initialization in UDP input
[vpp.git] / test / test_bihash.py
index ff2a898..e225604 100644 (file)
@@ -13,6 +13,10 @@ class TestBihash(VppTestCase):
     def setUpClass(cls):
         super(TestBihash, cls).setUpClass()
 
+    @classmethod
+    def tearDownClass(cls):
+        super(TestBihash, cls).tearDownClass()
+
     def setUp(self):
         super(TestBihash, self).setUp()
 
@@ -25,7 +29,7 @@ class TestBihash(VppTestCase):
 
         if error:
             self.logger.critical(error)
-        self.assertEqual(error.find("failed"), -1)
+            self.assertNotIn('failed', error)
 
     def test_bihash_thread(self):
         """ Bihash Thread Test """
@@ -34,7 +38,7 @@ class TestBihash(VppTestCase):
 
         if error:
             self.logger.critical(error)
-            self.assertEqual(error.find("failed"), -1)
+            self.assertNotIn('failed', error)
 
 if __name__ == '__main__':
     unittest.main(testRunner=VppTestRunner)