Sha256: fc1af48f620599f95f9e9725b1614fbd0848b8f4df2c21d8fa2a5e6df9c3f69a
Contents?: true
Size: 391 Bytes
Versions: 37
Compression:
Stored size: 391 Bytes
Contents
with_rackup('timeout.ru') do Shindo.tests('read should timeout') do [false, true].each do |nonblock| connection = Excon.new('http://127.0.0.1:9292', :nonblock => nonblock) tests("nonblock => #{nonblock} hits read_timeout").raises(Excon::Errors::Timeout) do connection.request(:method => :get, :path => '/timeout', :read_timeout => 1) end end end end
Version data entries
37 entries across 37 versions & 2 rubygems