diff --git a/t/qpsmtpd.t b/t/qpsmtpd.t index e6b50bb..1db8647 100644 --- a/t/qpsmtpd.t +++ b/t/qpsmtpd.t @@ -156,7 +156,7 @@ sub __run_continuation { }, ); for my $t (@test_data) { - for my $h ( @{ $t->{hooks} } ) { + for my $h ( reverse @{ $t->{hooks} } ) { $smtpd->fake_hook( 'helo', sub { return @$h } ); } $smtpd->{_continuation} = [ 'helo', ['somearg'], @{ $smtpd->hooks->{helo} } ];