From 96df65e88e010efe8f222110814bf862aaaea9c7 Mon Sep 17 00:00:00 2001 From: Krishna Rajendran Date: Tue, 6 Apr 2010 21:37:40 -0400 Subject: [PATCH] Make test-dns.js use dns_cares. --- test/disabled/test-dns.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/disabled/test-dns.js b/test/disabled/test-dns.js index f43ba5b832..7121fffd45 100644 --- a/test/disabled/test-dns.js +++ b/test/disabled/test-dns.js @@ -1,6 +1,7 @@ require("../common"); -var dns = require("dns"), +var dns = require("dns_cares"), + child_process = require("child_process"), sys = require("sys"); @@ -20,7 +21,7 @@ var hosts = ['example.com', 'example.org', '_xmpp-client._tcp.google.com', // SRV 'oakalynhall.co.uk']; // Multiple PTR replies -var records = ['A', 'AAAA', 'MX', 'TXT', 'SRV']; +var records = ['A', 'AAAA', 'TXT', 'SRV']; var i = hosts.length; while (i--) { @@ -32,7 +33,7 @@ while (i--) { "| sed -E 's/[[:space:]]+/ /g' | cut -d ' ' -f 5- " + "| sed -e 's/\\.$//'"; - sys.exec(hostCmd, checkDnsRecord(hosts[i], records[j])); + child_process.exec(hostCmd, checkDnsRecord(hosts[i], records[j])); } } @@ -61,7 +62,7 @@ function checkDnsRecord(host, record) { "| cut -d \" \" -f 5-" + "| sed -e 's/\\.$//'"; - sys.exec(reverseCmd, checkReverse(ip)); + child_process.exec(reverseCmd, checkReverse(ip)); } }); break;