Browse Source

[2155] checkCountersAllZeroExcept() returns void

Yoshitaka Aharen 12 years ago
parent
commit
fb4eb0b222
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/bin/auth/tests/statistics_unittest.cc

+ 3 - 3
src/bin/auth/tests/statistics_unittest.cc

@@ -53,7 +53,9 @@ protected:
     Counters counters;
 };
 
-bool
+// Test if the values of the counters are all zero except for the items
+// specified in except_for.
+void
 checkCountersAllZeroExcept(const isc::data::ConstElementPtr counters,
                            const std::set<std::string>& except_for) {
     std::map<std::string, ConstElementPtr> stats_map = counters->mapValue();
@@ -71,8 +73,6 @@ checkCountersAllZeroExcept(const isc::data::ConstElementPtr counters,
             << i->first << " = " << expect << ", actual: "
             << i->second->intValue();
     }
-
-    return false;
 }
 
 TEST_F(CountersTest, incrementNormalQuery) {