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

Commit 6283df0e authored by Mike Yu's avatar Mike Yu
Browse files

Test: Don't check the order of DNS answers in resolv_private_dns_test

Some tests are flaky because the order of answers is not expected.
For consistency with other tests, such as resolv_integration_test,
don't check the order of DNS answers.

Bug: 235965057
Test: atest
Change-Id: I3e6b04cce8034a2522fc8ccc35483551357b676d
parent e1bba7d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -314,7 +314,7 @@ class BasePrivateDnsTest : public BaseTest {
        const addrinfo hints = {.ai_socktype = SOCK_DGRAM};
        ScopedAddrinfo result = safe_getaddrinfo(host_name, nullptr, &hints);
        EXPECT_THAT(ToStrings(result),
                    testing::ElementsAreArray({kQueryAnswerAAAA, kQueryAnswerA}));
                    testing::UnorderedElementsAreArray({kQueryAnswerAAAA, kQueryAnswerA}));
    };

    void expectQueries(int dnsQueries, int dotQueries, int dohQueries) {