summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2020-04-26 15:14:25 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-04-26 15:14:25 +0000
commita4e8c80972bf10486f4916d31c0163b025cb76db (patch)
tree34c9fc2f63b5083998e3659f097eb5a262b0644a
parent883c699768b470254cb9ce0e989f3491ccd7bd1d (diff)
parentd7a52dd881e067f8ca921b891ba2d92e449b1eeb (diff)
Merge "Speed up the DHCP roaming tests." into rvc-dev am: f764224971 am: d7a52dd881
Change-Id: I8021ae307f699da29f9fe6ce22be0a383759b84a
-rw-r--r--tests/integration/src/android/net/ip/IpClientIntegrationTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/integration/src/android/net/ip/IpClientIntegrationTest.java b/tests/integration/src/android/net/ip/IpClientIntegrationTest.java
index 59bebb1..98393b8 100644
--- a/tests/integration/src/android/net/ip/IpClientIntegrationTest.java
+++ b/tests/integration/src/android/net/ip/IpClientIntegrationTest.java
@@ -1956,6 +1956,9 @@ public class IpClientIntegrationTest {
doAnswer(invocation -> {
// we don't rely on the Init-Reboot state to renew previous cached IP lease.
// Just return null and force state machine enter INIT state.
+ final String l2Key = invocation.getArgument(0);
+ ((OnNetworkAttributesRetrievedListener) invocation.getArgument(1))
+ .onNetworkAttributesRetrieved(new Status(SUCCESS), l2Key, null);
return null;
}).when(mIpMemoryStore).retrieveNetworkAttributes(eq(TEST_L2KEY), any());