summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2020-11-19 23:20:55 +0900
committerLorenzo Colitti <lorenzo@google.com>2020-11-26 10:33:23 +0900
commitde20152bbf99818b7a932282b864bdf70ff79067 (patch)
treeb4c9cca29dc7326a75236187776958e6a97467b9 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent52316750ed19010d2171e36e76f15176c8b529b8 (diff)
Make testVpnNetworkActive more deterministic.
This test is a bit brittle because it sets the underlying networks while the VPN is undergoing validation by NetworkMonitor. The test does attempt to disable validation, but that's not actually possible - the only thing that's possible is to tell NetworkMonitor to validate immediately without sending any probes. So the underlying network change races with the validation. I'm not sure why the test isn't flaky. It might be because both the network change and the validation result in a capabilities change, and the test expects "a capabilities change" without expressing what change that should be. Make this a bit more predictable by ensuring that the network validates before the underlying networks are set. This is useful because an upcoming CL will change the way underlying network capabilities are propagated. With this test CL, both the old and the new code pass. Bug: 173331190 Test: test-only change Change-Id: I319858228e8d097c0b60a107029f296385f91269
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions