forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dvs] Update test_nhg.py to make it pass in synchronous mode (sonic-n…
…et#1438) Add a wait for route entries in ASIC_DB in test_nhg.py::TestNextHopGroup::test_route_nhg_exhaust so that the test case could pass in synchronous mode. The test case test_nhg.py::TestNextHopGroup::test_route_nhg_exhaust fails in synchronous mode due to a delay between the creation of next-hop groups and routes in ASIC_DB. Getting the count of routes entries immediately after the creation of next-hop groups results in an inaccurate result. This PR fixes this by waiting for the number of route entries in ASIC_DB to be the expected value.
- Loading branch information
Showing
1 changed file
with
44 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters