test: fixup failing test/internet/test-dns.js

The `ttl` for the `nodejs.org` DNS record is returning `0`
currently. The test checks for `> 0`, causing the test to
fail.

Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/38241
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
James M Snell
2021-04-14 16:06:57 -07:00
parent 94405650ae
commit 5e588c1c7c

View File

@@ -91,7 +91,7 @@ TEST(async function test_resolve4_ttl(done) {
assert.strictEqual(typeof item, 'object');
assert.strictEqual(typeof item.ttl, 'number');
assert.strictEqual(typeof item.address, 'string');
assert.ok(item.ttl > 0);
assert.ok(item.ttl >= 0);
assert.ok(isIPv4(item.address));
}
}
@@ -119,7 +119,7 @@ TEST(async function test_resolve6_ttl(done) {
assert.strictEqual(typeof item, 'object');
assert.strictEqual(typeof item.ttl, 'number');
assert.strictEqual(typeof item.address, 'string');
assert.ok(item.ttl > 0);
assert.ok(item.ttl >= 0);
assert.ok(isIPv6(item.address));
}
}