]> git.puffer.fish Git - mirror/frr.git/commit
tests: ospfapi: fix non-determinism in test 13607/head
authorChristian Hopps <chopps@labn.net>
Fri, 26 May 2023 08:57:00 +0000 (04:57 -0400)
committerChristian Hopps <chopps@labn.net>
Fri, 26 May 2023 09:09:13 +0000 (05:09 -0400)
commit39e1f084b5ae1e5762a474269fb4134ac576a889
tree252723d89717e82affba8d400f972cbf5c4c3bbc
parentb570e9ce2840a3f9a39a1dc31999bf63bfc3879c
tests: ospfapi: fix non-determinism in test

fixes #13584

The test had the ospf client injecting multiple opaque LSAs on 5s pace,
but the test itself verified and advanced on an LSA in the middle of
that sequence and not the last one. Then the test reset the ospf client
and originating router. If a later injected LSA managed to get in to the
router and flooded prior to the client/router reset then the opaque data
or sequence number could differ from the expected value.

Signed-off-by: Christian Hopps <chopps@labn.net>
tests/topotests/ospfapi/test_ospf_clientapi.py