From 8b548e392dbfd0498f717f927169b3318eb53e83 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 27 Mar 2013 00:02:33 -0700 Subject: [PATCH] test fixes for badmailfrom,headers plugins --- t/plugin_tests/badmailfrom | 1 + t/plugin_tests/headers | 1 + 2 files changed, 2 insertions(+) diff --git a/t/plugin_tests/badmailfrom b/t/plugin_tests/badmailfrom index 463d5f7..e6ccded 100644 --- a/t/plugin_tests/badmailfrom +++ b/t/plugin_tests/badmailfrom @@ -52,6 +52,7 @@ sub test_badmailfrom_hook_mail { $transaction->sender($address); $self->{_badmailfrom_config} = ['matt@test.net','matt@test.com']; + $self->{_args}{reject} = 1; $transaction->notes('naughty', ''); my ($r, $err) = $self->hook_mail( $transaction, $address ); cmp_ok( $r, '==', DENY, "hook_mail rc"); diff --git a/t/plugin_tests/headers b/t/plugin_tests/headers index 7cf9e7e..c5cea99 100644 --- a/t/plugin_tests/headers +++ b/t/plugin_tests/headers @@ -79,6 +79,7 @@ sub test_invalid_date_range { sub test_hook_data_post { my $self = shift; + $self->{_args}{reject} = 1; my $reject = $self->{_args}{reject_type}; my $deny = $reject =~ /^temp|soft$/i ? DENYSOFT : DENY;