Skip to content

Commit

Permalink
Fix payload capability
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Jan 30, 2025
1 parent ac48e8c commit a9ab2d5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/python_testing/TCP_Tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@


class TCP_Tests(MatterBaseTest):
async def send_arm_cmd(self):
async def send_arm_cmd(self, payloadCapability: ChipDeviceCtrl.TransportPayloadCapability) -> None:
cmd = Clusters.GeneralCommissioning.Commands.ArmFailSafe(expiryLengthSeconds=900, breadcrumb=1)
await self.send_single_cmd(cmd=cmd, endpoint=0,
payloadCapability=ChipDeviceCtrl.TransportPayloadCapability.LARGE_PAYLOAD)
await self.send_single_cmd(cmd=cmd, endpoint=0, payloadCapability=payloadCapability)

@async_test_body
async def teardown_test(self):
Expand Down Expand Up @@ -139,7 +138,7 @@ async def test_TC_SC_8_5(self):
asserts.assert_equal(device.sessionAllowsLargePayload, True, "Session does not have associated TCP connection")

try:
await self.send_arm_cmd()
await self.send_arm_cmd(ChipDeviceCtrl.TransportPayloadCapability.LARGE_PAYLOAD)
except InteractionModelError:
asserts.fail("Unexpected error returned by DUT")

Expand Down Expand Up @@ -181,7 +180,7 @@ async def test_TC_SC_8_7(self):
asserts.assert_equal(device.sessionAllowsLargePayload, True, "Session does not have associated TCP connection")

try:
self.send_arm_cmd()
self.send_arm_cmd(ChipDeviceCtrl.TransportPayloadCapability.MRP_OR_TCP_PAYLOAD)
except InteractionModelError:
asserts.fail("Unexpected error returned by DUT")

Expand Down

0 comments on commit a9ab2d5

Please sign in to comment.