aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_bihash.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_bihash.py')
-rw-r--r--test/test_bihash.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_bihash.py b/test/test_bihash.py
index ff2a898dae3..6ccf6c25123 100644
--- a/test/test_bihash.py
+++ b/test/test_bihash.py
@@ -25,7 +25,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 +34,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)