Skip to content

Commit 2764129

Browse files
authored
Reset state before Step 8 in SWTCH 2.6 test (project-chip#38262)
Switch test 2.6 Step 6 is doing more switch actions then configured leading into the "cancelled" state which means that no more event should be send (from spec 1.13.5.3. MultiPressMax Attribute) > until the switch has become fully idle (i.e. no longer in the process of counting presses within the multipress). The test is starting step 8 directly after receiving the MultiPressComplete event from step 6 and not giving the Switch the time to finish multi switch actions. This PR adds a reset after Step 6 before Step 8 to ensure this is cleared
1 parent 6a12136 commit 2764129

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/python_testing/TC_SWTCH.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,8 @@ def test_multi_press_sequence(starting_step: str, count: int, short_long: bool =
924924
# subscription is already established
925925
self.step("7b")
926926

927+
self._ask_for_switch_idle(endpoint_id)
928+
927929
test_multi_press_sequence("8a", count=2, short_long=True)
928930

929931
self.step("9a")

0 commit comments

Comments
 (0)