test/test_multi.rb in em-http-request-0.2.2 vs test/test_multi.rb in em-http-request-0.2.3
- old
+ new
@@ -9,10 +9,10 @@
# create an instance of multi-request handler, and the requests themselves
multi = EventMachine::MultiRequest.new
# add multiple requests to the multi-handler
multi.add(EventMachine::HttpRequest.new('http://127.0.0.1:8080/').get(:query => {:q => 'test'}))
- multi.add(EventMachine::HttpRequest.new('http://0.0.0.0/').get(:timeout => 1))
+ multi.add(EventMachine::HttpRequest.new('http://0.0.0.0:8081/').get(:timeout => 1))
multi.callback {
# verify successfull request
multi.responses[:succeeded].size.should == 1
multi.responses[:succeeded].first.response.should match(/test/)
\ No newline at end of file