Skip to content

Commit

Permalink
Fix default initialization of CAT values in Matter Testing Support (p…
Browse files Browse the repository at this point in the history
…roject-chip#22116)

This fixes the default initialization of the `controller_cat_tags` field
in `MatterTestingSupport` class to correctly be initialized to an empty
list, since that is what is expected by FabricAdmin.NewController (and
others).

Testing:

Repro'ed the failure described in project-chip#22114, and then confirmed this fixes
it.
  • Loading branch information
mrjerryjohns authored and isiu-apple committed Sep 16, 2022
1 parent 663cc7e commit 90d48a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_testing/matter_testing_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class MatterTestConfig:
# Node ID to use for controller/commissioner
controller_node_id: int = _DEFAULT_CONTROLLER_NODE_ID
# CAT Tags for default controller/commissioner
controller_cat_tags: List[int] = None
controller_cat_tags: List[int] = field(default_factory=list)

# Fabric ID which to use
fabric_id: int = None
Expand Down

0 comments on commit 90d48a6

Please sign in to comment.