Skip to content

Commit d229e4c

Browse files
authored
Fix TC_SC_4_1 in CI (broken sleep usage and conflict with default removal on get_endpoint) (project-chip#42142)
* Fix CI * Fix CI
1 parent 6195bd0 commit d229e4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/python_testing/TC_SC_4_1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
# --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
5656
# === END CI TEST ARGUMENTS ===
5757

58+
import asyncio
5859
import enum
5960
import logging
60-
from time import sleep
6161
from typing import Optional
6262

6363
from mdns_discovery.mdns_discovery import MdnsDiscovery, MdnsServiceType
@@ -680,14 +680,14 @@ async def close_commissioning_window(self) -> None:
680680
endpoint=0,
681681
payload=revoke_cmd,
682682
timedRequestTimeoutMs=6000)
683-
sleep(1) # Give some time for failsafe cleanup scheduling
683+
await asyncio.sleep(1) # Give some time for failsafe cleanup scheduling
684684

685685
def desc_TC_TC_SC_4_1(self) -> str:
686686
return "[TC-SC-4.1] Commissionable Node Discovery with DUT as Commissionee"
687687

688688
@async_test_body
689689
async def test_TC_SC_4_1(self):
690-
self.endpoint = self.get_endpoint(default=1)
690+
self.endpoint = self.get_endpoint()
691691
self.supports_icd = False
692692
self.supports_lit = False
693693
self.setup_code_type = None

0 commit comments

Comments
 (0)