Skip to content

Commit ae5e04c

Browse files
committed
Adjust derived tests
1 parent dad71d9 commit ae5e04c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/testDerived.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ BOOST_AUTO_TEST_CASE(derivedRateInt)
3131
o2::monitoring::Metric metric(result.value, name);
3232
o2::monitoring::Metric derived = derivedHandler.process(metric, DerivedMetricMode::RATE);
3333
BOOST_CHECK_EQUAL(derived.getName(), "metricIntRate");
34-
BOOST_WARN_CLOSE(boost::get<double>(derived.getValue()), result.rate, 1.0);
34+
BOOST_WARN_CLOSE(boost::get<double>(derived.getValue()), result.rate, 5.0);
3535
} catch(MonitoringException &e) {
3636
BOOST_CHECK_EQUAL(e.what(), std::string("Not enough values"));
3737
}
@@ -79,7 +79,7 @@ BOOST_AUTO_TEST_CASE(derivedRateUint64_t) {
7979
o2::monitoring::Metric metric(result.value, name);
8080
o2::monitoring::Metric derived = derivedHandler.process(metric, DerivedMetricMode::RATE);
8181
BOOST_CHECK_EQUAL(derived.getName(), "metricUint64_tRate");
82-
BOOST_WARN_CLOSE(boost::get<double>(derived.getValue()), result.rate, 1.0);
82+
BOOST_WARN_CLOSE(boost::get<double>(derived.getValue()), result.rate, 5.0);
8383
} catch(MonitoringException &e) {
8484
BOOST_CHECK_EQUAL(e.what(), std::string("Not enough values"));
8585
}

0 commit comments

Comments
 (0)