From: Florent Bruneau Date: Wed, 1 Oct 2008 18:30:08 +0000 (+0200) Subject: Add a test of the cleanup. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=b03c9cfcc3d0080c0467493ac1693465dd2d0e60;p=apps%2Fpfixtools.git Add a test of the cleanup. Signed-off-by: Florent Bruneau --- diff --git a/postlicyd/data/test.conf b/postlicyd/data/test.conf index 9901acc..6e0a7a0 100644 --- a/postlicyd/data/test.conf +++ b/postlicyd/data/test.conf @@ -108,6 +108,7 @@ greylist1 { delay = 1; retry_window = 4; client_awl = 2; + max_age = 8; on_greylist = postfix:OK; on_whitelist = postfix:OK; diff --git a/postlicyd/tst-filters.c b/postlicyd/tst-filters.c index 7bcaa41..1a8db8b 100644 --- a/postlicyd/tst-filters.c +++ b/postlicyd/tst-filters.c @@ -175,6 +175,8 @@ static bool run_greylisttest(const config_t *config, const char *basepath) TEST("auto_whitelisted", filter_test(greylist1, &q1, HTK_WHITELIST)); TEST("other_auto_whitelisted", filter_test(greylist1, &q2, HTK_WHITELIST)); TEST("greylisted", filter_test(greylist1, &q3, HTK_GREYLIST)); + sleep(10); + TEST("cleanup", filter_test(greylist1, &q1, HTK_GREYLIST)); return ok; }