test/test_slow_server.rb in rubydns-0.5.4 vs test/test_slow_server.rb in rubydns-0.6.0
- old
+ new
@@ -35,10 +35,10 @@
Name = Resolv::DNS::Name
IN = Resolv::DNS::Resource::IN
def self.run
RubyDNS::run_server(:listen => SERVER_PORTS) do
- match(/\.*.com/, IN::A) do |match, transaction|
+ match(/\.*.com/, IN::A) do |transaction|
transaction.defer!
# No domain exists, after 5 seconds:
EventMachine::Timer.new(2) do
transaction.failure!(:NXDomain)