Description: Use Net::DNS's rdstring instead of deprecated rdatastr in tests; the latter throws warnings. Origin: vendor Author: gregor herrmann Last-Update: 2023-06-18 Forwarded: https://rt.cpan.org/Ticket/Display.html?id=148718 Bug: https://rt.cpan.org/Ticket/Display.html?id=148718 --- a/t/01_resolve.t +++ b/t/01_resolve.t @@ -104,7 +104,7 @@ $heap->{answers}++; foreach (@answers) { - my $response_data_string = $_->rdatastr; + my $response_data_string = $_->rdstring; my $response_data_type = $_->type; DEBUG and warn --- a/t/06_hosts.t +++ b/t/06_hosts.t @@ -140,7 +140,7 @@ return ( grep { ref() eq "Net::DNS::RR::A" } $response->{response}->answer() - )[0]->rdatastr(); + )[0]->rdstring(); } @@ -149,7 +149,7 @@ return "" unless defined $response->{response}; return ( grep { ref() eq "Net::DNS::RR::AAAA" } $response->{response}->answer() - )[0]->rdatastr(); + )[0]->rdstring(); }