Skip to content

Commit 180098e

Browse files
author
Josh Bailey
committed
Wrong test sense, for nonblocking test.
1 parent 32c0a61 commit 180098e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

clib/clib_mininet_test_unit.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ def _terminate_with_zero(self, tcpdump_helper):
5555
self.assertEqual(
5656
0, term_returns, msg='terminate code not 0: %d' % term_returns)
5757

58+
def _terminate_with_nonzero(self, tcpdump_helper):
59+
term_returns = tcpdump_helper.terminate()
60+
self.assertNotEqual(
61+
0, term_returns, msg='terminate code s 0: %d' % term_returns)
62+
5863
def test_tcpdump_execute(self):
5964
"""Check tcpdump filter monitors ping using execute"""
6065
self.ping_all_when_learned()
@@ -98,7 +103,7 @@ def test_tcpdump_noblock(self):
98103
while tcpdump_helper.next_line():
99104
count = count + 1
100105
self.assertTrue(count < 10, 'Too many ping results before noblock')
101-
self._terminate_with_zero(tcpdump_helper)
106+
self._terminate_with_nonzero(tcpdump_helper)
102107

103108
def test_tcpdump_nextline(self):
104109
"""Check tcpdump filter monitors ping using next_line"""

0 commit comments

Comments
 (0)