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

Commit 7eb4a191 authored by Mike Yu's avatar Mike Yu
Browse files

Test: Loose the check of DNS query time in ConnectTlsServerTimeout

The failed test's log shows that it might take more than 200ms to
create a new thread, establish a TLS connection, and issue a DNS
query. So, loose the check by increasing the time from 200ms to
1000ms.

Bug: 254186357
Test: atest resolv_integration_test:ResolverTest#ConnectTlsServerTimeout
Change-Id: I59020b9bbb3d712d84c3c7a7b981c4b17dc5d374
parent 86b572d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4565,7 +4565,7 @@ TEST_F(ResolverTest, ConnectTlsServerTimeout) {
        EXPECT_EQ(1U, GetNumQueries(dns, hostname2));
        EXPECT_EQ(records.at(1).addr, ToString(result));

        EXPECT_LE(timeTakenMs, 200);
        EXPECT_LE(timeTakenMs, 1000);
    }

    // TODO: Remove it after b/254186357 is clarified.