diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-06-01 20:30:38 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-06-01 20:30:38 +0200 |
commit | 0565fe21ecb1498de9722d25db10442ce0e4de04 (patch) | |
tree | f590f2f358ae19a53f1599b36901adc2a6a342ea | |
parent | Merge pull request #5564 (diff) | |
parent | unit_tests: make the density test a bit less stringent (diff) | |
download | monero-0565fe21ecb1498de9722d25db10442ce0e4de04.tar.xz |
Merge pull request #5563
205a0ba1 unit_tests: make the density test a bit less stringent (moneromooo-monero)
-rw-r--r-- | tests/unit_tests/output_selection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/output_selection.cpp b/tests/unit_tests/output_selection.cpp index 0094fc765..235b1c809 100644 --- a/tests/unit_tests/output_selection.cpp +++ b/tests/unit_tests/output_selection.cpp @@ -172,7 +172,7 @@ TEST(select_outputs, density) float chain_ratio = count_chain / (float)n_outs; MDEBUG(count_selected << "/" << NPICKS << " outputs selected in blocks of density " << d << ", " << 100.0f * selected_ratio << "%"); MDEBUG(count_chain << "/" << offsets.size() << " outputs in blocks of density " << d << ", " << 100.0f * chain_ratio << "%"); - ASSERT_LT(fabsf(selected_ratio - chain_ratio), 0.02f); + ASSERT_LT(fabsf(selected_ratio - chain_ratio), 0.025f); } } |