You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2022/04/11 06:26:28 UTC

svn commit: r1899728 - /spamassassin/trunk/t/sql_based_whitelist.t

Author: hege
Date: Mon Apr 11 06:26:28 2022
New Revision: 1899728

URL: http://svn.apache.org/viewvc?rev=1899728&view=rev
Log:
Improve test a bit more

Modified:
    spamassassin/trunk/t/sql_based_whitelist.t

Modified: spamassassin/trunk/t/sql_based_whitelist.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/sql_based_whitelist.t?rev=1899728&r1=1899727&r2=1899728&view=diff
==============================================================================
--- spamassassin/trunk/t/sql_based_whitelist.t (original)
+++ spamassassin/trunk/t/sql_based_whitelist.t Mon Apr 11 06:26:28 2022
@@ -5,7 +5,7 @@ use SATest;
 
 use Test::More;
 plan skip_all => 'AWL SQL Tests not enabled.' unless conf_bool('run_awl_sql_tests');
-plan tests => 20;
+plan tests => 23;
 diag "Note: Failure may be due to an incorrect config";
 
 sa_t_init("sql_based_whitelist");
@@ -65,6 +65,11 @@ ok_all_patterns();
 ok(sarun ("-L -t -D auto-whitelist < data/spam/004 2>&1", \&patterns_run_cb));
 ok_all_patterns();
 
+# Should be raised after last spam
+%patterns = (%is_spam_patterns, (q{'144.137 scores 9.837, msgcount 5'} => 'scores'));;
+ok(sarun ("-L -t -D auto-whitelist < data/spam/004 2>&1", \&patterns_run_cb));
+ok_all_patterns();
+
 %patterns = (%is_spam_patterns2, (q{'210.73 scores 0, msgcount 0'} => 'scores'));;
 ok(sarun ("-L -t -D auto-whitelist < data/spam/007 2>&1", \&patterns_run_cb));
 ok_all_patterns();