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

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

Fix test RemoteConnectionClosed not to fail to restart doh server am: a67518ee

Original change: https://android-review.googlesource.com/c/platform/packages/modules/DnsResolver/+/2008796

Change-Id: I5fe9feeec3841f8b78b6ea2070499fede06716b6
parents 0a58457b a67518ee
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1029,6 +1029,8 @@ TEST_F(PrivateDnsDohTest, RemoteConnectionClosed) {
    // Make the server close the connection. This will also reset the stats, so the doh query
    // count below is still 2 rather than 4.
    ASSERT_TRUE(doh.stopServer());
    // Sleep a while to avoid binding socket failed.
    sleep_for(milliseconds(100));
    ASSERT_TRUE(doh.startServer());

    EXPECT_NO_FAILURE(sendQueryAndCheckResult());