aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-05-20 10:42:50 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-05-20 10:42:50 +0000
commitdbecfe7d5ddb7cfa7271485d3b1d4c6cf349218f (patch)
treeaac8a73ea0662b30f4a40e09f0c28e606f1e387b /tests/unit_tests
parentMerge pull request #5548 (diff)
downloadmonero-dbecfe7d5ddb7cfa7271485d3b1d4c6cf349218f.tar.xz
unit_tests: make the density test a bit less stringent
It's an inherently random test
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/output_selection.cpp2
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);
}
}