OSDN Git Service

Fix flaky testNattSocketKeepalives
authorRemi NGUYEN VAN <reminv@google.com>
Fri, 8 Feb 2019 08:10:50 +0000 (17:10 +0900)
committerRemi NGUYEN VAN <reminv@google.com>
Thu, 14 Feb 2019 03:28:48 +0000 (03:28 +0000)
commitac02bc8141b12212ef0a4ad56cf4a67e63ad8a49
tree9147b694acfa6c4fb22be1c6fe601bbc5c40f45e
parentf46b14b6aff8293a8881d97f6fee089ae86c0955
Fix flaky testNattSocketKeepalives

The test did not wait for the WifiNetworkAgent to disconnect, and there
are reports of flakes where it is still connected in
connectKeepaliveNetwork.

Test: atest FrameworksNetTests
Bug: 124319553
Change-Id: I85968806885c8853ec4f4dbea356366c1af0ea1c
tests/net/java/com/android/server/ConnectivityServiceTest.java