You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by mm...@apache.org on 2012/05/15 00:56:40 UTC

svn commit: r1338479 - /spamassassin/trunk/t/spamd_sql_prefs.t

Author: mmartinec
Date: Mon May 14 22:56:40 2012
New Revision: 1338479

URL: http://svn.apache.org/viewvc?rev=1338479&view=rev
Log:
test spamd_sql_prefs.t failed because rules MSGID_RANDY and DATE_IN_PAST_03_06 brought a test message over a spam threshold

Modified:
    spamassassin/trunk/t/spamd_sql_prefs.t

Modified: spamassassin/trunk/t/spamd_sql_prefs.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/spamd_sql_prefs.t?rev=1338479&r1=1338478&r2=1338479&view=diff
==============================================================================
--- spamassassin/trunk/t/spamd_sql_prefs.t (original)
+++ spamassassin/trunk/t/spamd_sql_prefs.t Mon May 14 22:56:40 2012
@@ -8,7 +8,7 @@ use constant HAS_DBD_SQLITE => eval { re
 our $DO_RUN = !$SKIP_SPAMD_TESTS && conf_bool('run_sql_pref_tests')
     && HAS_DBI && HAS_DBD_SQLITE;
 
-use Test; plan tests => ($DO_RUN ? 30 : 0);
+use Test; plan tests => ($DO_RUN ? 32 : 0);
 
 exit unless $DO_RUN;
 
@@ -22,6 +22,8 @@ $dbh->{AutoCommit} = 1;
 ok($dbh->do("CREATE TABLE userpref (username, preference, value)"));
 ok($dbh->do("INSERT INTO userpref VALUES('\@GLOBAL', 'add_header', 'all tTEST1 FOO1')"));
 ok($dbh->do("INSERT INTO userpref VALUES('testuser', 'score', 'GTUBE 0')"));
+ok($dbh->do("INSERT INTO userpref VALUES('testuser', 'score', 'MSGID_RANDY 0')"));
+ok($dbh->do("INSERT INTO userpref VALUES('testuser', 'score', 'DATE_IN_PAST_03_06 0')"));
 ok($dbh->do("INSERT INTO userpref VALUES('testuser', 'add_header', 'all tTEST2 FOO2')"));
 
 tstlocalrules ("