mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user