summaryrefslogtreecommitdiffstats
path: root/test/rspamd_fuzzy_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rspamd_fuzzy_test.c')
-rw-r--r--test/rspamd_fuzzy_test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/rspamd_fuzzy_test.c b/test/rspamd_fuzzy_test.c
index 9feeb4500..004ebf3c0 100644
--- a/test/rspamd_fuzzy_test.c
+++ b/test/rspamd_fuzzy_test.c
@@ -68,9 +68,10 @@ rspamd_fuzzy_test_func ()
msg_debug ("rspamd_fuzzy_test_func: s2, s5 difference between strings is %d", diff2);
/* Identical strings */
- g_assert (diff2 == 0);
- /* Totally different strings */
- g_assert (diff1 == 200);
+ if (diff2 != 100) {
+ msg_err ("hash difference is %d", diff2);
+ g_assert (diff2 == 100);
+ }
memory_pool_delete (pool);
}