Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78095d65 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Extend timeout for requesting tethered interface" am: 3a7c2abe am:...

Merge "Extend timeout for requesting tethered interface" am: 3a7c2abe am: d8f4f5b4 am: e9f46c1e am: 7fce8266 am: 1d20250c

Change-Id: I133050d9d19a3cf926478c97eecee9a540c2bfa7
parents 528b5647 1d20250c
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ import java.util.concurrent.TimeoutException;
public class EthernetTetheringTest {

    private static final String TAG = EthernetTetheringTest.class.getSimpleName();
    private static final int TIMEOUT_MS = 1000;
    private static final int TIMEOUT_MS = 5000;
    private static final int PACKET_READ_TIMEOUT_MS = 100;
    private static final int DHCP_DISCOVER_ATTEMPTS = 10;
    private static final byte[] DHCP_REQUESTED_PARAMS = new byte[] {
@@ -338,7 +338,8 @@ public class EthernetTetheringTest {

    private MyTetheringEventCallback enableEthernetTethering(String iface) throws Exception {
        return enableEthernetTethering(iface,
                new TetheringRequest.Builder(TETHERING_ETHERNET).build());
                new TetheringRequest.Builder(TETHERING_ETHERNET)
                .setExemptFromEntitlementCheck(true).build());
    }

    private int getMTU(TestNetworkInterface iface) throws SocketException {
@@ -508,7 +509,8 @@ public class EthernetTetheringTest {
        LinkAddress localAddr = local == null ? null : new LinkAddress(local);
        LinkAddress clientAddr = client == null ? null : new LinkAddress(client);
        return new TetheringRequest.Builder(TETHERING_ETHERNET)
                .setStaticIpv4Addresses(localAddr, clientAddr).build();
                .setStaticIpv4Addresses(localAddr, clientAddr)
                .setExemptFromEntitlementCheck(true).build();
    }

    private void assertInvalidStaticIpv4Request(String iface, String local, String client)