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

Commit b754f1c3 authored by Steven Moreland's avatar Steven Moreland
Browse files

binderSafeInterfaceTest: another quick flake fix

P.S. we should delete safe interface and move everything
to using AIDL-generated interfaces. It doesn't support
all the things AIDL does, and we don't want so many
ways of doing things.

Change-Id: I92c97e458314c0c85ec9ca8eab2c1552abec8ca6
Fixes: 387346410
Test: TH
parent 38a4ab9f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -789,7 +789,7 @@ TEST_F(SafeInterfaceTest, TestCallMeBack) {
        std::optional<int32_t> waitForCallback() {
        std::optional<int32_t> waitForCallback() {
            std::unique_lock<decltype(mMutex)> lock(mMutex);
            std::unique_lock<decltype(mMutex)> lock(mMutex);
            bool success =
            bool success =
                    mCondition.wait_for(lock, 100ms, [&]() { return static_cast<bool>(mValue); });
                    mCondition.wait_for(lock, 1000ms, [&]() { return static_cast<bool>(mValue); });
            return success ? mValue : std::nullopt;
            return success ? mValue : std::nullopt;
        }
        }