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

Commit a2d3cf16 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Reland "Increase the test timeout used when waiting for events to be traced"

This reverts commit aff0a047.

Reason for revert: b/323347575, b/210460522

Change-Id: I8f0b2a246dd25f6449e311411cd4d1b698706e88
parent 0eaf1408
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -23,7 +23,11 @@ namespace android::inputdispatcher {

namespace {

constexpr auto TRACE_TIMEOUT = std::chrono::milliseconds(100);
// Use a larger timeout while waiting for events to be traced, compared to the timeout used while
// waiting to receive events through the input channel. Events are traced from a separate thread,
// which does not have the same high thread priority as the InputDispatcher's thread, so the tracer
// is expected to lag behind the Dispatcher at times.
constexpr auto TRACE_TIMEOUT = std::chrono::seconds(5);

base::ResultError<> error(const std::ostringstream& ss) {
    return base::ResultError(ss.str(), BAD_VALUE);