Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: add missing description on test-dns-channel-tries.js
  • Loading branch information
oluan committed Aug 10, 2021
commit 32980dac49c7d10e4ad39487801dd60ca78675d2
3 changes: 3 additions & 0 deletions test/parallel/test-dns-channel-tries.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const dns = require('dns');
const TRIES = 1;
const IMPRECISION_MS = 100;

// Tests for dns.Resolver option `tries`.
// This will roughly test if a single try fails after the set `timeout`.

for (const ctor of [dns.Resolver, dns.promises.Resolver]) {
for (const tries of [null, true, false, '', '2']) {
assert.throws(() => new ctor({ tries }), {
Expand Down