test fixes for badmailfrom,headers plugins

This commit is contained in:
Matt Simerson 2013-03-27 00:02:33 -07:00
parent b79f952b36
commit 55e9664824
2 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,7 @@ sub test_badmailfrom_hook_mail {
$transaction->sender($address); $transaction->sender($address);
$self->{_badmailfrom_config} = ['matt@test.net','matt@test.com']; $self->{_badmailfrom_config} = ['matt@test.net','matt@test.com'];
$self->{_args}{reject} = 1;
$transaction->notes('naughty', ''); $transaction->notes('naughty', '');
my ($r, $err) = $self->hook_mail( $transaction, $address ); my ($r, $err) = $self->hook_mail( $transaction, $address );
cmp_ok( $r, '==', DENY, "hook_mail rc"); cmp_ok( $r, '==', DENY, "hook_mail rc");

View File

@ -79,6 +79,7 @@ sub test_invalid_date_range {
sub test_hook_data_post { sub test_hook_data_post {
my $self = shift; my $self = shift;
$self->{_args}{reject} = 1;
my $reject = $self->{_args}{reject_type}; my $reject = $self->{_args}{reject_type};
my $deny = $reject =~ /^temp|soft$/i ? DENYSOFT : DENY; my $deny = $reject =~ /^temp|soft$/i ? DENYSOFT : DENY;