From b03c9cfcc3d0080c0467493ac1693465dd2d0e60 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Wed, 1 Oct 2008 20:30:08 +0200 Subject: [PATCH] Add a test of the cleanup. Signed-off-by: Florent Bruneau --- postlicyd/data/test.conf | 1 + postlicyd/tst-filters.c | 2 ++ 2 files changed, 3 insertions(+) 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; } -- 2.20.1