Skip to content

Commit

Permalink
Should be using captured not received by filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Jan 20, 2020
1 parent b478865 commit 01006fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clib/mininet_test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ def verify_ping_mirrored_multi(self, ping_pairs, mirror_host, both_mirrored=Fals
self.assertLessEqual(received_pings, max_expected_pings)

def match_tcpdump_rx_packets(self, tcpdump_txt):
match_re = re.compile(r'.*(\d+) packets* received by filter.*')
match_re = re.compile(r'.*(\d+) packets* captured.*')
match = match_re.match(tcpdump_txt)
self.assertTrue(match, msg=tcpdump_txt)
packets = int(match.group(1))
Expand Down

0 comments on commit 01006fa

Please sign in to comment.