@@ -361,11 +361,11 @@ assert.throws(() => {
361
361
const cases = [
362
362
{ method : 'resolveAny' ,
363
363
answers : [
364
- { type : 'A' , address : '1.2.3.4' , ttl : 3333333333 } ,
365
- { type : 'AAAA' , address : '::42' , ttl : 3333333333 } ,
366
- { type : 'MX' , priority : 42 , exchange : 'foobar.com' , ttl : 3333333333 } ,
367
- { type : 'NS' , value : 'foobar.org' , ttl : 3333333333 } ,
368
- { type : 'PTR' , value : 'baz.org' , ttl : 3333333333 } ,
364
+ { type : 'A' , address : '1.2.3.4' , ttl : 0 } ,
365
+ { type : 'AAAA' , address : '::42' , ttl : 0 } ,
366
+ { type : 'MX' , priority : 42 , exchange : 'foobar.com' , ttl : 0 } ,
367
+ { type : 'NS' , value : 'foobar.org' , ttl : 0 } ,
368
+ { type : 'PTR' , value : 'baz.org' , ttl : 0 } ,
369
369
{
370
370
type : 'SOA' ,
371
371
nsname : 'ns1.example.com' ,
@@ -380,11 +380,11 @@ assert.throws(() => {
380
380
381
381
{ method : 'resolve4' ,
382
382
options : { ttl : true } ,
383
- answers : [ { type : 'A' , address : '1.2.3.4' , ttl : 3333333333 } ] } ,
383
+ answers : [ { type : 'A' , address : '1.2.3.4' , ttl : 0 } ] } ,
384
384
385
385
{ method : 'resolve6' ,
386
386
options : { ttl : true } ,
387
- answers : [ { type : 'AAAA' , address : '::42' , ttl : 3333333333 } ] } ,
387
+ answers : [ { type : 'AAAA' , address : '::42' , ttl : 0 } ] } ,
388
388
389
389
{ method : 'resolveSoa' ,
390
390
answers : [
@@ -415,7 +415,7 @@ assert.throws(() => {
415
415
( answer ) => Object . assign ( { domain } , answer )
416
416
) ,
417
417
} ) , port , address ) ;
418
- } , cases . length ) ) ;
418
+ } , cases . length * 2 - 1 ) ) ;
419
419
420
420
server . bind ( 0 , common . mustCall ( ( ) => {
421
421
const address = server . address ( ) ;
0 commit comments