Skip to content

Commit

Permalink
CADMIN_1_19.py: Do not try to remove on non commissioned controller (#…
Browse files Browse the repository at this point in the history
…36989)

The current code is adding a new controller to the fids array which has the effect that the next loop will try to also read from this controller, but the test expects commissioning to fail, so this will not work.

The test currently does not fail because of another problem which is not addressed 8yet) by this PR and is in discussion. To see the effect of this change the used controller need to have more fabrics allowed then the used chip-app - currently because both have same limit of 17 this is failing already on controller instance creation which never added the controller to the fids array.
  • Loading branch information
Apollon77 authored Jan 21, 2025
1 parent 545b49c commit 8ffb7b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python_testing/TC_CADMIN_1_19.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ async def test_TC_CADMIN_1_19(self):
fids_fa_dir[next_fabric] = fids_ca_dir[current_fabrics +
1].NewFabricAdmin(vendorId=0xFFF1, fabricId=next_fabric)
try:
fids[next_fabric] = fids_fa_dir[next_fabric].NewController(nodeId=next_fabric)
await fids[next_fabric].CommissionOnNetwork(
next_fabric_controller = fids_fa_dir[next_fabric].NewController(nodeId=next_fabric)
await next_fabric_controller.CommissionOnNetwork(
nodeId=self.dut_node_id, setupPinCode=params.commissioningParameters.setupPinCode,
filterType=ChipDeviceCtrl.DiscoveryFilterType.LONG_DISCRIMINATOR, filter=params.randomDiscriminator)

Expand Down

0 comments on commit 8ffb7b1

Please sign in to comment.