aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Bishop <mab68@students.waikato.ac.nz>2020-05-11 15:40:59 +1200
committerMark Bishop <mab68@students.waikato.ac.nz>2020-05-11 15:40:59 +1200
commit05e7a74925ccd1d800f555d57c46a6a34d799612 (patch)
tree0fe64bdc275672b8794e8dd189f6f5b438636ca2
parenta215d5b1df1f3c2f2b0260635939eef50c225345 (diff)
downloadfaucet-05e7a74925ccd1d800f555d57c46a6a34d799612.tar.gz
faucet-05e7a74925ccd1d800f555d57c46a6a34d799612.tar.bz2
faucet-05e7a74925ccd1d800f555d57c46a6a34d799612.zip
fix LACP untagged test
-rw-r--r--tests/integration/mininet_multidp_tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/integration/mininet_multidp_tests.py b/tests/integration/mininet_multidp_tests.py
index 64494613..c1a0e5c1 100644
--- a/tests/integration/mininet_multidp_tests.py
+++ b/tests/integration/mininet_multidp_tests.py
@@ -362,9 +362,11 @@ class FaucetStringOfDPLACPUntaggedTest(FaucetMultiDPTest):
event = json.loads(event_log_line.strip())
if 'LAG_CHANGE' in event:
lag_event_found = event.get('LAG_CHANGE')
+ break
self.assertTrue(lag_event_found)
if lag_event_found:
- self.assertTrue(lag_event_found.get('state') and lag_event_found.get('role'))
+ self.assertIn('state', lag_event_found)
+ self.assertIn('role', lag_event_found)
def test_dyn_fail(self):
"""Test lacp fail on reload with dynamic lacp status."""