summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2022-01-06 11:08:17 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2022-01-07 22:35:38 +0200
commitc5aef655d80b87e3b49b8b509fd175501db4b6db (patch)
tree319f048e2615a8d9e4a846fa682e1a26fd52ba23
parentcd9d1a366c2572de78305ba99bbf1a693b96dd28 (diff)
tests: Adopt bgp_shutdown_message test to a proper encoding
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
-rw-r--r--tests/topotests/bgp_features/test_bgp_features.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/topotests/bgp_features/test_bgp_features.py b/tests/topotests/bgp_features/test_bgp_features.py
index 9a06aaa090..ab44ba3c83 100644
--- a/tests/topotests/bgp_features/test_bgp_features.py
+++ b/tests/topotests/bgp_features/test_bgp_features.py
@@ -240,15 +240,10 @@ def test_bgp_shutdown_message():
assertmsg = "BGP shutdown message not received on router R{}".format(rtrNum)
assert shut_message != "", assertmsg
- m = re.search(".*([0-9]+ bytes[ 0-9a-fA-F]+)", shut_message)
- if m:
- found = m.group(1)
- else:
- found = ""
assertmsg = "Incorrect BGP shutdown message received on router R{}".format(
rtrNum
)
- assert found == "8 bytes 41 42 43 44 61 62 63 64", assertmsg
+ assert "ABCDabcd" in shut_message, assertmsg
# tgen.mininet_cli()