aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-15 17:13:18 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-15 17:13:18 -0500
commit86ee6312127d44d2a976afd993556cc115fc5e63 (patch)
tree55324455744a6da61c8b20f299d7f25b05924d6a /tests/unit_tests
parentMerge pull request #5649 (diff)
parentunit_tests: add more leeway to the "same distribution" check (diff)
downloadmonero-86ee6312127d44d2a976afd993556cc115fc5e63.tar.xz
Merge pull request #5652
f81cb4f unit_tests: add more leeway to the 'same distribution' check (moneromooo-monero)
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/output_selection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_tests/output_selection.cpp b/tests/unit_tests/output_selection.cpp
index c98696fbd..0724cd3e0 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);
}