diff --git a/tests/route/test_forced_mgmt_route.py b/tests/route/test_forced_mgmt_route.py index 8d8c3a94c0e..0b05159a7e1 100644 --- a/tests/route/test_forced_mgmt_route.py +++ b/tests/route/test_forced_mgmt_route.py @@ -22,6 +22,11 @@ FORCED_MGMT_ROUTE_PRIORITY = 32764 +# Wait 300 seconds because sometime 'interfaces-config' service take 45 seconds to response +# interfaces-config service issue track by: https://github.com/sonic-net/sonic-buildimage/issues/19045 +FILE_CHANGE_TIMEOUT = 300 + + @pytest.fixture def backup_restore_config(duthosts, enum_rand_one_per_hwsku_hostname): """make sure tacacs server running after UT finish""" @@ -64,8 +69,8 @@ def hash_and_timestamp_changed(duthost, file): latest_timestamp = get_interface_reload_timestamp(duthost) return latest_hash != original_hash and latest_timestamp != last_timestamp - exist = wait_until(10, 1, 0, hash_and_timestamp_changed, duthost, file) - pytest_assert(exist, "File {} does not change after 10 seconds.".format(file)) + exist = wait_until(FILE_CHANGE_TIMEOUT, 1, 0, hash_and_timestamp_changed, duthost, file) + pytest_assert(exist, "File {} does not change after {} seconds.".format(file, FILE_CHANGE_TIMEOUT)) def address_type(address):