summaryrefslogtreecommitdiff
path: root/test/internet/test-dns-txt-sigsegv.js
blob: 9f65b6ec24ffc07cce6bc0afcfecd212d28af229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict';
require('../common');
const assert = require('assert');
const dns = require('dns');
const dnsPromises = dns.promises;

(async function() {
  const result = await dnsPromises.resolveTxt('www.microsoft.com');
  assert.strictEqual(result.length, 0);
})();

dns.resolveTxt('www.microsoft.com', function(err, records) {
  assert.strictEqual(err, null);
  assert.strictEqual(records.length, 0);
});