Remove unnecessary sleep workaround in test

Previously, when we start VPN, even if the onAvailable callback fires,
the VPN UID ranges are not yet configured. So, we needed to have a sleep
to wait some time.

But this is fixed now.
When VPN register a network agent, VPN send EVENT_REGISTER_NETWORK_AGENT
with CONNECTING state and EVENT_NETWORK_INFO_CHANGED with CONNECTED state to ConnectivityService.

In the process of the first event, ConnectivityService configures VPN
UID ranges. And in the process of the second event, ConnectivityService
fires onAvailable callback.
Network agent makes sure the second event is sent after the first event.

So, when onAvailable callback fires, VPN UID ranges are configured.

Also, I have run "atest HostsideVpnTests --iterations 30" and confirmed
tests do not fail.

Test: atest HostsideVpnTests --iterations 30
Change-Id: I9cc908e7a1c0ea7b5bec08571f4e1028e05dfc56
1 file changed