Skip to content

Commit

Permalink
tests: Fix for issue when RP is changed
Browse files Browse the repository at this point in the history
Issue: #14057
Fix: Added some sleep to make sure prune is received before
RP is changed.

Signed-off-by: Kuldeep Kashyap <[email protected]>
  • Loading branch information
kuldeepkash committed Sep 20, 2023
1 parent 0cf046c commit 8824e30
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import sys
import time
import pytest
from time import sleep

# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
Expand Down Expand Up @@ -430,7 +431,15 @@ def test_iif_oil_when_RP_address_changes_from_static_to_BSR_p1(request):
}
]
}
},
}
}
result = create_pim_config(tgen, topo, input_dict)
assert result is True, "Testcase {} : Failed Error: {}".format(tc_name, result)

# Need to wait for 10 sec to make sure prune is received before below RP change is executed
sleep(10)

input_dict = {
"r5": {
"pim": {
"rp": [
Expand All @@ -444,7 +453,6 @@ def test_iif_oil_when_RP_address_changes_from_static_to_BSR_p1(request):
}
},
}

result = create_pim_config(tgen, topo, input_dict)
assert result is True, "Testcase {} : Failed Error: {}".format(tc_name, result)

Expand Down

0 comments on commit 8824e30

Please sign in to comment.