diff --git a/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt b/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt index 8b5774c225..a0fb29e8b8 100644 --- a/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt +++ b/tests/cts/net/src/android/net/cts/EthernetManagerTest.kt @@ -335,11 +335,10 @@ class EthernetManagerTest { validateListenerOnRegistration(listener1) // If an interface appears, existing callbacks see it. - // TODO: fix the up/up/down/up callbacks and only send down/up. val iface2 = createInterface() - listener1.expectCallback(iface2, STATE_LINK_UP, ROLE_CLIENT) - listener1.expectCallback(iface2, STATE_LINK_UP, ROLE_CLIENT) - listener1.expectCallback(iface2, STATE_LINK_DOWN, ROLE_CLIENT) + // TODO: fix the up/up/down/up callbacks and only send down/up. Change to expectCallback + // once that is fixed. + listener1.eventuallyExpect(iface2, STATE_LINK_DOWN, ROLE_CLIENT) listener1.expectCallback(iface2, STATE_LINK_UP, ROLE_CLIENT) // Register a new listener, it should see state of all existing interfaces immediately.