diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-06-16 12:17:13 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-06-16 12:18:28 +0000 |
commit | f81cb4f24bfb3b2df40063263ffc3b64b5d73c2b (patch) | |
tree | 5dc43f8b1b70065253b771254f63899580a0682c /tests/unit_tests/output_selection.cpp | |
parent | Merge pull request #5641 (diff) | |
download | monero-f81cb4f24bfb3b2df40063263ffc3b64b5d73c2b.tar.xz |
unit_tests: add more leeway to the "same distribution" check
This is an inherently probabilistic check, which occasionally fails
for a matching distribution
Diffstat (limited to 'tests/unit_tests/output_selection.cpp')
-rw-r--r-- | tests/unit_tests/output_selection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_tests/output_selection.cpp b/tests/unit_tests/output_selection.cpp index 235b1c809..17398f777 100644 --- a/tests/unit_tests/output_selection.cpp +++ b/tests/unit_tests/output_selection.cpp @@ -211,10 +211,10 @@ TEST(select_outputs, same_distribution) { const double diff = (double)output_norm[i] - (double)chain_norm[i]; double dev = fabs(2.0 * diff / (output_norm[i] + chain_norm[i])); - ASSERT_LT(dev, 0.1); + ASSERT_LT(dev, 0.15); avg_dev += dev; } avg_dev /= 100; MDEBUG("avg_dev: " << avg_dev); - ASSERT_LT(avg_dev, 0.015); + ASSERT_LT(avg_dev, 0.02); } |