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

Commit 87ca2454 authored by Mike Yu's avatar Mike Yu Committed by Gerrit Code Review
Browse files

Merge "Test: Increase the DoT probe waiting time"

parents e295aeea 8d2970eb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -306,10 +306,12 @@ again:

    // Poll again because the same DoT probe might be sent again.
    if (isDotProbe && queryCounts == 1) {
        int n = poll(&fds, 1, 50);
        const int timeoutMs = 500;
        int n = poll(&fds, 1, timeoutMs);
        if (n > 0 && fds.revents & POLLIN) {
            goto again;
        }
        LOG(WARNING) << "Did not receive the second DoT probe within " << timeoutMs << "ms";
    }

    LOG(DEBUG) << __func__ << " return: " << queryCounts;