summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkCapabilitiesTest.java
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2021-04-05 20:32:37 +0900
committerLorenzo Colitti <lorenzo@google.com>2021-04-05 23:42:29 +0900
commitb6bffbca95379dde4b2fe989b7b05ab73b20cbca (patch)
treed00887022b4ea090216c1ae8d1e87a667b1d279a /tests/common/java/android/net/NetworkCapabilitiesTest.java
parent491999292b0a3778f91cea5e13c1dbb4a1c35cd0 (diff)
Fix DadProxyTest when forwarding is on.
When forwarding is on, DadProxyTest fails because forwarding disables optimistic addresses. This results in the DAD proxy getting EADDRNOTAVAIL. Forwarding is on quite often on real hardware because many solutions for wifi calling use forwarding. Fix the test to retry after two seconds if the packet is not forwarded on the first attempt. It would also be possible to make this work more reliably in the test by simply disabling DAD or disabling forwarding. However, because DAD does happen in real usage (downstream interfaces always disable DAD, but upstream interfaces don't), that seems risky. For example, if the test disabled DAD, it would not catch bugs where the DAD proxy crashed or stopped forwarding if it got EADDRNOTAVAIL. Test: atest TetheringPrivilegedTests on coral, which has forwarding on Change-Id: I58280ef7c0e40371cd770ead4c8baa7190c288fd
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions