spec/pipelining_spec.rb in em-http-request-1.1.2 vs spec/pipelining_spec.rb in em-http-request-1.1.3
- old
+ new
@@ -6,14 +6,14 @@
it "should perform successful pipelined GETs" do
EventMachine.run do
# Mongrel doesn't support pipelined requests - bah!
- conn = EventMachine::HttpRequest.new('http://www.igvita.com/')
+ conn = EventMachine::HttpRequest.new('http://www.mexicodiario.com/')
pipe1 = conn.get :keepalive => true
- pipe2 = conn.get :path => '/archives/', :keepalive => true
+ pipe2 = conn.get :path => '/contact/', :keepalive => true
processed = 0
stop = proc { EM.stop if processed == 2}
pipe1.errback { failed(conn) }
@@ -34,13 +34,13 @@
end
end
it "should perform successful pipelined HEAD requests" do
EventMachine.run do
- conn = EventMachine::HttpRequest.new('http://www.igvita.com/')
+ conn = EventMachine::HttpRequest.new('http://www.mexicodiario.com/')
pipe1 = conn.head :keepalive => true
- pipe2 = conn.head :path => '/archives/', :keepalive => true
+ pipe2 = conn.head :path => '/contact/', :keepalive => true
processed = 0
stop = proc { EM.stop if processed == 2}
pipe1.errback { failed(conn) }