]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Partial fix for mmap'd statistics tests 733/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 20 Jul 2016 08:29:05 +0000 (09:29 +0100)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 20 Jul 2016 08:29:05 +0000 (09:29 +0100)
test/functional/cases/statistics/compat-keyed.robot
test/functional/cases/statistics/compat-plain.robot
test/functional/configs/stats.conf

index 0549787450613529411e284dd35c8714d301527c..1242df12c135a06533eb09d1586bf1c23f592a76 100644 (file)
@@ -7,6 +7,7 @@ Resource        lib.robot
 ${STATS_BACKEND}  mmap
 ${STATS_HASH}   hash = "compat";
 ${STATS_KEY}    key = "${KEY_PVT1}";
+${STATS_PATH_CACHE}  name = "sqlite3"; path = "\${TMPDIR}/learn_cache.db";
 
 *** Test Cases ***
 Learn
index 246d5a5d5868930efbaf0bf2385f3d1a1c628bf6..12bbaedcddaf9dc95e215427cbe7bd2cd0d5bf71 100644 (file)
@@ -6,6 +6,7 @@ Resource        lib.robot
 *** Variables ***
 ${STATS_BACKEND}  mmap
 ${STATS_HASH}   hash = "compat";
+${STATS_PATH_CACHE}  name = "sqlite3"; path = "\${TMPDIR}/learn_cache.db";
 
 *** Test Cases ***
 Learn
index 216d7d8f330b64734e129a4d60406713457c29af..6c2893022cd93e557b77b4854e7a4980c53be219 100644 (file)
@@ -45,12 +45,14 @@ classifier {
        }
        backend = ${STATS_BACKEND}
        statfile {
+               spam = true;
                symbol = BAYES_SPAM;
                ${STATS_PATH_SPAM}
                size = 1M;
                ${REDIS_SERVER}
        }
        statfile {
+               spam = false;
                symbol = BAYES_HAM;
                ${STATS_PATH_HAM}
                size = 1M;