Skip to content
Permalink
Browse files

Fix broken tests/runner

The runner had a broken cleanup function, which gets called when a test fails.  Changed some of the domain names so that the tests pass.  Still using google.com for the txt record.

removed debug code from runner
  • Loading branch information...
kans committed Sep 20, 2012
1 parent be683ff commit b5ec54b94b0bad33d44d2a4e524ff5774f2b5174
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 b5ec54b

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