Skip to content

Commit ca4b699

Browse files
authored
Allow TC_IDM_1_2.py to pass when invoke response is supporessed (#33514)
* Allow TC_IDM_1_2.py to pass when invoke response is supporessed * make linter happy
1 parent bd2e2b9 commit ca4b699

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/python_testing/TC_IDM_1_2.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,11 @@ async def test_TC_IDM_1_2(self):
236236

237237
# Lucky candidate ArmFailSafe is at it again - command side effect is to set breadcrumb attribute
238238
cmd = Clusters.GeneralCommissioning.Commands.ArmFailSafe(expiryLengthSeconds=900, breadcrumb=2)
239-
await self.default_controller.SendCommand(nodeid=self.dut_node_id, endpoint=0, payload=cmd, suppressResponse=True)
240-
# TODO: Once the above issue is resolved, this needs a check to ensure that no response was received.
239+
try:
240+
await self.default_controller.SendCommand(nodeid=self.dut_node_id, endpoint=0, payload=cmd, suppressResponse=True)
241+
# TODO: Once the above issue is resolved, this needs a check to ensure that (always) no response was received.
242+
except ChipStackError:
243+
logging.info("DUT correctly supressed the response")
241244

242245
# Verify that the command had the correct side effect even if a response was sent
243246
breadcrumb = await self.read_single_attribute_check_success(

0 commit comments

Comments
 (0)