diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-01-06 11:08:17 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-01-07 22:35:38 +0200 |
| commit | c5aef655d80b87e3b49b8b509fd175501db4b6db (patch) | |
| tree | 319f048e2615a8d9e4a846fa682e1a26fd52ba23 | |
| parent | cd9d1a366c2572de78305ba99bbf1a693b96dd28 (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.py | 7 |
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() |
