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

Commit 3a66b961 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix testMultipleConditions flake" into rvc-dev am: ecb9cfe0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11856230

Change-Id: I8ed04711ca4450336c8874873cb8b2774af02360
parents d30b398e ecb9cfe0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -50,13 +50,13 @@ TEST(MultiConditionTrigger, TestMultipleConditions) {
    });

    vector<thread> threads;
    vector<bool> done(numConditions, false);
    vector<int> done(numConditions, 0);

    int i = 0;
    for (const string& conditionName : conditionNames) {
        threads.emplace_back([&done, &conditionName, &trigger, i] {
            sleep_for(chrono::milliseconds(3));
            done[i] = true;
            done[i] = 1;
            trigger.markComplete(conditionName);
        });
        i++;