Skip to content

Commit

Permalink
Update src/python_testing/matter_testing_infrastructure/chip/testing/…
Browse files Browse the repository at this point in the history
…matter_testing.py


Adding commi from Cecille to the code here to help better clarify and explain reasoning for this coding change.

Co-authored-by: C Freeman <[email protected]>
  • Loading branch information
j-ororke and cecille authored Dec 12, 2024
1 parent 7e22b21 commit 360e51c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,9 @@ def setup_class(self):
self.step_skipped = False
self.global_wildcard = asyncio.wait_for(self.default_controller.Read(self.dut_node_id, [(Clusters.Descriptor), Attribute.AttributePath(None, None, GlobalAttributeIds.ATTRIBUTE_LIST_ID), Attribute.AttributePath(
None, None, GlobalAttributeIds.FEATURE_MAP_ID), Attribute.AttributePath(None, None, GlobalAttributeIds.ACCEPTED_COMMAND_LIST_ID)]), timeout=60)
# self.stored_global_wildcard stores value of self.global_wildcard after first async call, appears needed in order to not timeout during commissioning
# self.stored_global_wildcard stores value of self.global_wildcard after first async call.
# Because setup_class can be called before commissioning, this variable is lazy-initialized
# where the read is deferred until the first guard function call that requires global attributes.
self.stored_global_wildcard = None

def setup_test(self):
Expand Down

0 comments on commit 360e51c

Please sign in to comment.