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

Commit 183a98da authored by Mike Yu's avatar Mike Yu Committed by Automerger Merge Worker
Browse files

Fix some flaky tests due to DnsTlsFrontend::queries() am: 4afe6a6b

parents fd36f120 4afe6a6b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4787,7 +4787,7 @@ TEST_F(ResolverTest, QueryTlsServerTimeout) {
            // Also check how much time the resolver processed the query.
            timeTakenMs = s.timeTakenUs() / 1000;
            EXPECT_LE(timeTakenMs, 500);
            EXPECT_EQ(2, tls.queries());
            EXPECT_TRUE(tls.waitForQueries(2));
        }
    }
}
@@ -5087,7 +5087,7 @@ TEST_F(ResolverTest, DotQuickFallback) {

        EXPECT_EQ(dot1.acceptConnectionsCount(), 1);
        EXPECT_EQ(dot2.acceptConnectionsCount(), canQuickFallback ? 0 : 1);
        EXPECT_EQ(dot2.queries(), canQuickFallback ? 0 : 1);
        EXPECT_TRUE(dot2.waitForQueries(canQuickFallback ? 0 : 1));

        dot1.setHangOnHandshakeForTesting(false);
    }