ethernet: increase timeout to deflake tests

The up / up / down / up issue causes ethernet tests to fail as
createInterface() uses eventually expect to wait on the down callback.
On the test infrastructure, that callback often does not arrive within
1000ms. I have seen this failure locally, although in less than 1% of
all test runs.

Bug: 234314411
Bug: 227008268
Test: atest EthernetManagerTest
Change-Id: I26929c47cfc557047e7987a920a07af4e1bd55d6
(cherry picked from commit 88692dc7c6758f442d89d21e22b5be6ca5140f1b)
Merged-In: I26929c47cfc557047e7987a920a07af4e1bd55d6
diff --git a/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt b/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt
index bfc9b29..0f76b85 100644
--- a/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt
+++ b/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt
@@ -72,7 +72,9 @@
 import kotlin.test.assertTrue
 import kotlin.test.fail
 
-private const val TIMEOUT_MS = 1000L
+// TODO: try to lower this timeout in the future. Currently, ethernet tests are still flaky because
+// the interface is not ready fast enough (mostly due to the up / up / down / up issue).
+private const val TIMEOUT_MS = 2000L
 private const val NO_CALLBACK_TIMEOUT_MS = 200L
 private val DEFAULT_IP_CONFIGURATION = IpConfiguration(IpConfiguration.IpAssignment.DHCP,
     IpConfiguration.ProxySettings.NONE, null, null)