Skip to content

Commit dbc111e

Browse files
fix(usb_device): Fix failing NCM device test by increasing dealy for the network ifc
1 parent 771e9db commit dbc111e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/peripherals/usb/device/tusb_ncm/pytest_usb_device_ncm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
@idf_parametrize('target', ['esp32s2', 'esp32s3'], indirect=['target'])
1414
def test_usb_device_ncm_example(dut: Dut) -> None:
1515
netif_mac = dut.expect(
16-
r'Network interface HW address: ([0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2})'
16+
r'Network interface HW address: '
17+
r'([0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:'
18+
r'[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2})'
1719
)
1820
netif_mac = netif_mac.group(1).decode('utf-8')
1921
dut.expect_exact('USB NCM and WiFi initialized and started')
2022
dut.expect_exact('Returned from app_main()')
21-
time.sleep(1) # Wait 1s for the network interface to appear
23+
time.sleep(2) # Wait 2s for the network interface to appear
2224
out_bytes = subprocess.check_output('ifconfig', shell=True, timeout=5)
2325
out_str = out_bytes.decode('utf-8')
2426
print('expected network interface HW address: ', netif_mac)

0 commit comments

Comments
 (0)