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

Commit 9975205d authored by Yao Chen's avatar Yao Chen
Browse files

Fix a bug in test that cause the flakyness in SimpleConditionTracker_test.

Test: statsd_test
Change-Id: I9f785d26c857023fbe44d71eb3490a50fcc6139a
parent c9fa2f6d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -238,6 +238,7 @@ TEST(SimpleConditionTrackerTest, TestSlicedCondition) {
    vector<MatchingState> matcherState;
    matcherState.push_back(MatchingState::kMatched);
    matcherState.push_back(MatchingState::kNotMatched);
    matcherState.push_back(MatchingState::kNotMatched);
    vector<sp<ConditionTracker>> allConditions;
    vector<ConditionState> conditionCache(1, ConditionState::kNotEvaluated);
    vector<bool> changedCache(1, false);
@@ -322,6 +323,7 @@ TEST(SimpleConditionTrackerTest, TestSlicedWithNoOutputDim) {
    vector<MatchingState> matcherState;
    matcherState.push_back(MatchingState::kMatched);
    matcherState.push_back(MatchingState::kNotMatched);
    matcherState.push_back(MatchingState::kNotMatched);
    vector<sp<ConditionTracker>> allConditions;
    vector<ConditionState> conditionCache(1, ConditionState::kNotEvaluated);
    vector<bool> changedCache(1, false);