Skip to content

Commit 79faaa3

Browse files
Apollon77andy31415
andauthored
Increase testing backchannel waiting time to 50ms (project-chip#38788)
* Increase testing backchannel waiting time to 50ms The merge of project-chip/connectedhomeip@0b7c1c5 now leads to centralized backchannel communication via the file socket which is great, but the very short waiting time of 1ms is a bit short for all cases to reduce flaky tests - especially also when matter.js is used as DuT, so increasing that wait time to 50ms at least should give. more stability for the tests * 100ms is better and more reliable * 20ms should also be robust enough * update comment as requested * upgrade to 50ms --------- Co-authored-by: Andrei Litvin <[email protected]>
1 parent 141ea37 commit 79faaa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/python_testing/matter_testing_infrastructure/chip/testing/matter_testing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,8 @@ def write_to_app_pipe(self, command_dict: dict, app_pipe_prefix: Optional[str] =
11051105
app_pipe.write(json.dumps(command_dict) + "\n")
11061106

11071107
# TODO(#31239): remove the need for sleep
1108-
sleep(0.001)
1108+
# This was tested with matter.js as being reliable enough
1109+
sleep(0.05)
11091110
else:
11101111
logging.info(f"Using DUT IP address: {dut_ip}")
11111112

0 commit comments

Comments
 (0)