Skip to content
Commit 1c1f1e14 authored by Patrick Rohr's avatar Patrick Rohr
Browse files

ethernet: use short timeout for assumeNoInterfaceForTetheringAvailable

assumeNoInterfaceForTetheringAvailable checks if an interface is
available for tethering and throws and assumption failure accordingly.
If a physical interface is present, onAvailable() will be called almost
immediately, so there is no need to ever wait for TIMEOUT_MS. This is
especially important now that TIMEOUT_MS is being increased to 10s.

Test: atest EthernetManagerTest
Change-Id: I2f58d7690dbe4c25cfb01a8b29717cea6a01ab32
parent fb63db00
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment