Skip to content

Commit

Permalink
Adjust derived tests
Browse files Browse the repository at this point in the history
  • Loading branch information
awegrzyn committed Jan 21, 2019
1 parent dad71d9 commit ae5e04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testDerived.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BOOST_AUTO_TEST_CASE(derivedRateInt)
o2::monitoring::Metric metric(result.value, name);
o2::monitoring::Metric derived = derivedHandler.process(metric, DerivedMetricMode::RATE);
BOOST_CHECK_EQUAL(derived.getName(), "metricIntRate");
BOOST_WARN_CLOSE(boost::get<double>(derived.getValue()), result.rate, 1.0);
BOOST_WARN_CLOSE(boost::get<double>(derived.getValue()), result.rate, 5.0);
} catch(MonitoringException &e) {
BOOST_CHECK_EQUAL(e.what(), std::string("Not enough values"));
}
Expand Down Expand Up @@ -79,7 +79,7 @@ BOOST_AUTO_TEST_CASE(derivedRateUint64_t) {
o2::monitoring::Metric metric(result.value, name);
o2::monitoring::Metric derived = derivedHandler.process(metric, DerivedMetricMode::RATE);
BOOST_CHECK_EQUAL(derived.getName(), "metricUint64_tRate");
BOOST_WARN_CLOSE(boost::get<double>(derived.getValue()), result.rate, 1.0);
BOOST_WARN_CLOSE(boost::get<double>(derived.getValue()), result.rate, 5.0);
} catch(MonitoringException &e) {
BOOST_CHECK_EQUAL(e.what(), std::string("Not enough values"));
}
Expand Down

0 comments on commit ae5e04c

Please sign in to comment.