]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: bump DecayCounter.steady acceptable error 41619/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 15 Apr 2021 13:57:57 +0000 (06:57 -0700)
committerCory Snyder <csnyder@iland.com>
Tue, 1 Jun 2021 11:45:27 +0000 (07:45 -0400)
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 <pdonnell@redhat.com>
(cherry picked from commit 9a369ef119dbc10c0dbf6da286a8eb6faa14606c)

src/test/common/test_counter.cc

index 942d2a7e530c0cf8eea569a4260f7b47642d20ad..f9a7d6e6c6203b6e91519d43f614624fbddef2b4 100644 (file)
@@ -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);
 }