summaryrefslogtreecommitdiffstats
path: root/test/test_session.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_session.py')
-rw-r--r--test/test_session.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_session.py b/test/test_session.py
index 5f4f3f5cfba..afea5f6a90d 100644
--- a/test/test_session.py
+++ b/test/test_session.py
@@ -68,14 +68,14 @@ class TestSession(VppTestCase):
"private-segment-size 1m uri " + uri)
if error:
self.logger.critical(error)
- self.assertEqual(error.find("failed"), -1)
+ self.assertNotIn("failed", error)
error = self.vapi.cli("test echo client nclients 100 appns 1 " +
"no-output fifo-size 64 syn-timeout 2 " +
"private-segment-size 1m uri " + uri)
if error:
self.logger.critical(error)
- self.assertEqual(error.find("failed"), -1)
+ self.assertNotIn("failed", error)
if self.vpp_dead:
self.assert_equal(0)
@@ -98,7 +98,7 @@ class TestSessionUnitTests(VppTestCase):
if error:
self.logger.critical(error)
- self.assertEqual(error.find("failed"), -1)
+ self.assertNotIn("failed", error)
def tearDown(self):
super(TestSessionUnitTests, self).tearDown()