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

Commit 341bdae5 authored by Mike Yu's avatar Mike Yu
Browse files

Fix flaky test MultipleDotQueriesInOnePacket

It's due to a race issue which DnsTlsFrontend::queries() is called
before queries_ is updated.

Fix: 190878628
Test: ran MultipleDotQueriesInOnePacket 1000 times
Change-Id: I74648f167069f95428143db122eed0dd1ead50e4
parent 9069e6dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6010,7 +6010,7 @@ TEST_F(ResolverTest, MultipleDotQueriesInOnePacket) {
    threads[1].join();

    // Also check no additional queries due to DoT reconnection.
    EXPECT_EQ(tls.queries(), 2);
    EXPECT_TRUE(tls.waitForQueries(2));
}

TEST_F(ResolverTest, MdnsGetHostByName) {