Sha256: a5d45da8303d3ef3ee0bbb6cd443adadc46a6693df0b90f16ee812200c57dd2d
Contents?: true
Size: 391 Bytes
Versions: 10
Compression:
Stored size: 391 Bytes
Contents
Shindo.tests('read should timeout') do with_rackup('timeout.ru') 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
10 entries across 10 versions & 1 rubygems