diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2020-04-25 10:13:33 +0000 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2020-04-25 11:35:08 +0000 |
commit | 23013b08caa51f26606ad7b90c321b243e7c5e83 (patch) | |
tree | 8cdfd21508364dcdae0c60342475d94fe70f1953 /src/android/net/ip/IpClient.java | |
parent | 2ed62241f6433d0b4014f35157e7f2f17231637c (diff) |
Speed up IpClientIntegrationTest.
1. Ensure the IpMemoryStore always immediately answers questions
from the DHCP client. Otherwise, starting the DHCP client
takes two seconds as the query to the IpMemoryStore times out.
This does not affect tests that use the IpMemoryStore because
unlike when(), doAnswer() can be called multiple times.
2. Disable IPv6 provisioning delays before every test, instead of
requiring every test to do it individually.
3. Disable DAD as well as setting router solicitation delay to 0.
This results in the IP stack essentially immediately after
IpClient is told to start.
This speeds up the test by about 2x. Before:
$ time atest -ti NetworkStackIntegrationTests:IpClientIntegrationTest
...
real 1m21.375s
After:
$ time atest -ti NetworkStackIntegrationTests:IpClientIntegrationTest
...
real 0m41.642s
Bug: 152723363
Test: test-only change
Original-Change: http://aosp/1295486
Merged-In: I32f24ed03fde6fe7e0d0531fa2a289b7f4f88745
Change-Id: I32f24ed03fde6fe7e0d0531fa2a289b7f4f88745
Diffstat (limited to 'src/android/net/ip/IpClient.java')
0 files changed, 0 insertions, 0 deletions