Skip to content
Permalink
Browse files

Merge pull request #345 from racker/fix-tests

Fix tests
  • Loading branch information...
rphillips committed Sep 21, 2012
2 parents be683ff + b5ec54b commit b756c4a6a0d38e728c47069c353111a1abcc5a1f
Showing with 3 additions and 3 deletions.
  1. +1 −1 tests/runner.lua
  2. +2 −2 tests/test-dns.lua
@@ -137,6 +137,6 @@ end

remove_recursive(tmp_dir, function ()
fs.mkdir(tmp_dir, "0755", function()
run(remove_tmp)
run(function() fs.rmdir(tmp_dir) end)
end)
end)
@@ -59,7 +59,7 @@ dns.reverse('bogus ip', function(err, addresses)
assert(type(addresses) == 'nil')
end)

dns.resolveMx('gmail.com', function(err, addresses)
dns.resolveMx('rackspace.com', function(err, addresses)
assert(type(err) == 'nil')
assert(type(addresses) == 'table')
for i=1,#addresses do
@@ -87,7 +87,7 @@ dns.resolveSrv('_jabber._tcp.google.com', function(err, addresses)
end
end)

dns.resolveCname('www.google.com', function(err, names)
dns.resolveCname('www.rackspace.com', function(err, names)
assert(type(err) == 'nil')
assert(type(names) == 'table')
assert(#names == 1)

0 comments on commit b756c4a

Please sign in to comment.
You can’t perform that action at this time.