Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 21, 2012
1 parent be683ff commit b5ec54b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/runner.lua
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions tests/test-dns.lua
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b5ec54b

Please sign in to comment.