summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authormatsduf <mats.dufberg@iis.se>2018-01-23 15:41:56 +0100
committerGitHub <noreply@github.com>2018-01-23 15:41:56 +0100
commit377e91607acd9c494ab74014cc93d3692ea35379 (patch)
tree92df7ebc5aaebce7ea439f1efbae6c6acef2a6da /t
parent4633973f236f3ec85119d5cf8cde63576239c6b3 (diff)
Updated to adjust for changes in live data (#39)
Updated to adjust for changes in live data and replace fixed value of NS with range. Also updated accepted range of additional records to match range of NS.
Diffstat (limited to 't')
-rw-r--r--t/netldns.t6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/netldns.t b/t/netldns.t
index 12e29f7..caf0041 100644
--- a/t/netldns.t
+++ b/t/netldns.t
@@ -78,9 +78,11 @@ SKIP: {
is( scalar( $se->question ), 1, 'one question' );
is( scalar( $se->answer ), 0, 'zero answers' );
- is( scalar( $se->authority ), 10, 'nine authority' );
+ my $authority = scalar $se->authority;
+ cmp_ok( $authority, '<=', 13, 'at most 13 NS (authority)' );
+ cmp_ok( $authority, '>=', 6, 'at least 6 NS (authority)' );
my $add = scalar( $se->additional );
- cmp_ok( $add, '<=', 20, 'at most 20 additional' );
+ cmp_ok( $add, '<=', 26, 'at most 20 additional' );
cmp_ok( $add, '>=', 8, 'at least 8 additional' );
my $rr = Zonemaster::LDNS::RR->new_from_string(