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

Test: statsd_test
Change-Id: I9f785d26c857023fbe44d71eb3490a50fcc6139a
This commit is contained in:
Yao Chen
2017-11-27 11:40:45 -08:00
parent c9fa2f6d4e
commit 9975205ded

View File

@@ -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);