diff --git a/src/python_testing/TC_CADMIN_1_22_24.py b/src/python_testing/TC_CADMIN_1_22_24.py index 94bc065479944c..2309aaf87fcacf 100644 --- a/src/python_testing/TC_CADMIN_1_22_24.py +++ b/src/python_testing/TC_CADMIN_1_22_24.py @@ -164,7 +164,8 @@ async def test_TC_CADMIN_1_24(self): # Since we provided 179 seconds as the timeout duration, # we should not be able to open comm window as duration is too long. # we are expected receive Failed to open commissioning window: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) - asserts.assert_equal(e.err, 0x00000585, + _INVALID_COMMAND = 0x00000585 + asserts.assert_equal(e.err, _INVALID_COMMAND, "Expected to error as we provided failure value for opening commissioning window") self.step(6)