From 9975205ded668aba5576d4883b2073dc274b39f0 Mon Sep 17 00:00:00 2001 From: Yao Chen Date: Mon, 27 Nov 2017 11:40:45 -0800 Subject: [PATCH] Fix a bug in test that cause the flakyness in SimpleConditionTracker_test. Test: statsd_test Change-Id: I9f785d26c857023fbe44d71eb3490a50fcc6139a --- cmds/statsd/tests/condition/SimpleConditionTracker_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmds/statsd/tests/condition/SimpleConditionTracker_test.cpp b/cmds/statsd/tests/condition/SimpleConditionTracker_test.cpp index 11fb011fd74eb..e0aac1137c4ca 100644 --- a/cmds/statsd/tests/condition/SimpleConditionTracker_test.cpp +++ b/cmds/statsd/tests/condition/SimpleConditionTracker_test.cpp @@ -238,6 +238,7 @@ TEST(SimpleConditionTrackerTest, TestSlicedCondition) { vector matcherState; matcherState.push_back(MatchingState::kMatched); matcherState.push_back(MatchingState::kNotMatched); + matcherState.push_back(MatchingState::kNotMatched); vector> allConditions; vector conditionCache(1, ConditionState::kNotEvaluated); vector changedCache(1, false); @@ -322,6 +323,7 @@ TEST(SimpleConditionTrackerTest, TestSlicedWithNoOutputDim) { vector matcherState; matcherState.push_back(MatchingState::kMatched); matcherState.push_back(MatchingState::kNotMatched); + matcherState.push_back(MatchingState::kNotMatched); vector> allConditions; vector conditionCache(1, ConditionState::kNotEvaluated); vector changedCache(1, false);