From: Patrick Donnelly Date: Thu, 15 Apr 2021 13:57:57 +0000 (-0700) Subject: test: bump DecayCounter.steady acceptable error X-Git-Tag: v17.1.0~2248^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9a369ef119dbc10c0dbf6da286a8eb6faa14606c;p=ceph.git test: bump DecayCounter.steady acceptable error The test is often run on heavily loaded machines which will effect the precision of the test. Fixes: https://tracker.ceph.com/issues/50378 Signed-off-by: Patrick Donnelly --- diff --git a/src/test/common/test_counter.cc b/src/test/common/test_counter.cc index 942d2a7e530c..f9a7d6e6c620 100644 --- a/src/test/common/test_counter.cc +++ b/src/test/common/test_counter.cc @@ -36,5 +36,5 @@ TEST(DecayCounter, steady) */ double expected = -1*std::log(0.5)/rate*max*duration; std::cerr << "t " << total << " e " << expected << std::endl; - ASSERT_LT(std::abs(total-expected)/expected, 0.01); + ASSERT_LT(std::abs(total-expected)/expected, 0.05); }