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

Commit 8d2970eb authored by Mike Yu's avatar Mike Yu
Browse files

Test: Increase the DoT probe waiting time

Increase the waiting time from 50ms to 500ms so that the tests
are less likely to be flaky.

Bug: 254186357
Test: atest
Change-Id: Ie78d40a02c4d92cc90c35961d52e8c6154548af2
parent 86b572d5
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;