Skip to content

Commit

Permalink
Fix STP off on test
Browse files Browse the repository at this point in the history
Tgen needs more time to calculate the correct traffic rate.

Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
  • Loading branch information
SerhiyBoikoPLV committed Aug 8, 2023
1 parent b0def73 commit a8d0b9d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ async def test_stp_switching_off_on(testbed, version):

# 7. Verify traffic is forwarded and port 2 doesn't receive any traffic
stats = await tgen_utils_get_traffic_stats(tgen_dev, 'Flow Statistics')
await asyncio.sleep(10)
for row in stats.Rows:
if row['Traffic Item'] == traffic and row['Rx Port'] == tg_ports[1]:
err_msg = f'Expected 0.0 got : {float(row["Rx Rate (Mbps)"])}'
Expand Down

0 comments on commit a8d0b9d

Please sign in to comment.