Increase timeout to deflake tests

In failed log, VPN still process the migration which does not
send the network capabilities update to network agent.
In low performance devices like cuttlefish, it may sometimes
cause flaky. Specify a longer timeout to deflake the test.

Bug: 293233390
Test: atest FrameworksNetTests
Change-Id: I4e6c80c03e19efb448ee2806c5a250425b0e068f
This commit is contained in:
chiachangwang
2023-07-27 08:44:41 +00:00
committed by Chiachang Wang
parent 0b5fb22b1b
commit 595fac0840

View File

@@ -2467,7 +2467,8 @@ public class VpnTest extends VpnTestBase {
if (expectedReadFromCarrierConfig) {
final ArgumentCaptor<NetworkCapabilities> ncCaptor =
ArgumentCaptor.forClass(NetworkCapabilities.class);
verify(mMockNetworkAgent).doSendNetworkCapabilities(ncCaptor.capture());
verify(mMockNetworkAgent, timeout(TEST_TIMEOUT_MS))
.doSendNetworkCapabilities(ncCaptor.capture());
final VpnTransportInfo info =
(VpnTransportInfo) ncCaptor.getValue().getTransportInfo();