Skip to content

Commit

Permalink
Merge pull request #3136 from anarkiwi/errflake
Browse files Browse the repository at this point in the history
Don't require errors always (test code doesn't always cause them).
  • Loading branch information
anarkiwi committed Aug 6, 2019
2 parents 4c80717 + 24efbae commit 5bc1e34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/integration/mininet_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7999,11 +7999,10 @@ def send_flow_mod(self, flow_mod, timeout=5):
def tearDown(self, ignore_oferrors=True):
"""Ignore OF errors on teardown"""
oferrors = super().tearDown(ignore_oferrors)
# We expect some OF errors from the bad flow mods
oferrors = re.findall(r'type: (\w+)', oferrors)
counter = collections.Counter(oferrors)
error('Ignored OF error count: %s\n' % dict(counter))
self.assertTrue(oferrors)
error('Ignored OF error count: %s\n' % dict(counter))
# TODO: ensure at least one error is always generated.

# pylint: disable=arguments-differ
def test_untagged(self, count=10):
Expand Down

0 comments on commit 5bc1e34

Please sign in to comment.