summaryrefslogtreecommitdiff
path: root/common/networkstackclient/src
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2020-04-30 11:55:32 +0000
committerRemi NGUYEN VAN <reminv@google.com>2020-05-01 00:14:40 +0000
commit87b5dd44da352123fd0cbc3cd2350ce95d817be4 (patch)
tree3ca84f536bc0eb80c6c8254d4fd3dd2c87eead1b /common/networkstackclient/src
parent2e16ff33e97bdbf9f7a30807c740860a1b5f147e (diff)
Wait for IpClient.StoppedState#enter before tests
IpClientIntegrationTest is flaky because some mocks that IpClient uses, like mNetd, can be stubbed while IpClient is initializing in its handler thread. This generates UnfinishedStubbingExceptions as IpClient is calling methods on the mock while the test is trying to stub additional methods. Wait for IpClient to become idle before doing any further setup. Bug: 152723363 Test: atest NetworkStackCoverageTests:IpClientIntegrationTests --rerun-until-failure [lots] on Q Cuttlefish Original-Change: https://android-review.googlesource.com/1298472 Merged-In: I90206a16fff1fa12ca7e37e36d49163b6a83e5c1 Change-Id: I90206a16fff1fa12ca7e37e36d49163b6a83e5c1
Diffstat (limited to 'common/networkstackclient/src')
0 files changed, 0 insertions, 0 deletions