From 01a29c85ac44b7a7fc86165abb35901d9b10419a Mon Sep 17 00:00:00 2001 From: isabelmsft Date: Fri, 16 Jun 2023 22:46:07 +0000 Subject: [PATCH] fix apply patch order --- tests/generic_config_updater/test_ecn_config_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic_config_updater/test_ecn_config_update.py b/tests/generic_config_updater/test_ecn_config_update.py index 9c03c0b016..ff782f4492 100644 --- a/tests/generic_config_updater/test_ecn_config_update.py +++ b/tests/generic_config_updater/test_ecn_config_update.py @@ -95,8 +95,8 @@ def test_ecn_config_updates(duthost, ensure_dut_readiness, configdb_field, opera "value": "{}".format(value)}) try: + output = apply_patch(duthost, json_data=json_patch, dest_file=tmpfile) if is_valid_platform_and_version(duthost, "WRED_PROFILE", "ECN tuning"): - output = apply_patch(duthost, json_data=json_patch, dest_file=tmpfile) expect_op_success(duthost, output) ensure_application_of_updated_config(duthost, configdb_field, ",".join(values)) else: