dnsbl: fixed plugin test failure

This commit is contained in:
Matt Simerson 2012-11-14 18:21:21 -05:00
parent e959e408b1
commit 8d52a3f548

View File

@ -48,8 +48,12 @@ sub test_is_set_rblsmtpd {
sub test_hook_connect { sub test_hook_connect {
my $self = shift; my $self = shift;
# reset values that other tests may have fiddled with
my $conn = $self->qp->connection; my $conn = $self->qp->connection;
$conn->relay_client(0); # other tests may leave it enabled $conn->relay_client(0); # other tests may leave it enabled
$conn->notes('whitelisthost', '' );
$conn->notes('whitelistsender', '');
$conn->notes('naughty', '');
$conn->remote_ip('127.0.0.2'); # standard dnsbl test value $conn->remote_ip('127.0.0.2'); # standard dnsbl test value
my ($rc, $mess) = $self->hook_connect($self->qp->transaction); my ($rc, $mess) = $self->hook_connect($self->qp->transaction);