Skip to content

Commit 33b6954

Browse files
authored
Merge pull request #3297 from hathach/hil-increase-timeout-for-mtp
increase timeout for mtp hil test
2 parents 8f2e3ed + b5faf4f commit 33b6954

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/hil/hil_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ def read_disk_file(uid, lun, fname):
141141

142142
def open_mtp_dev(uid):
143143
mtp = MTP()
144-
timeout = ENUM_TIMEOUT
144+
# MTP seems to take a while to enumerate
145+
timeout = 2*ENUM_TIMEOUT
145146
while timeout > 0:
146147
# run_cmd(f"gio mount -u mtp://TinyUsb_TinyUsb_Device_{uid}/")
147148
for raw in mtp.detect_devices():

0 commit comments

Comments
 (0)