Force the test app into a non-idle state.

Otherwise, the app idle state could interfere
with the test verifications.

Bug: 317204099
Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideNetworkCallbackTests.java
Change-Id: I057546082ffc2f6f5c8da8928824a5261d0f8c7f
This commit is contained in:
Sudheer Shanka 2023-12-20 20:01:27 +00:00
commit 9d8ab0cafd

View file

@ -203,6 +203,7 @@ public class NetworkCallbackTest extends AbstractRestrictBackgroundNetworkTestCa
// Initial state
setBatterySaverMode(false);
setRestrictBackground(false);
setAppIdle(false);
// Get transports of the active network, this has to be done before changing meteredness,
// since wifi will be disconnected when changing from non-metered to metered.