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

Version Path
excon-0.26.0 tests/timeout_tests.rb
excon-0.25.3 tests/timeout_tests.rb
excon-0.25.2 tests/timeout_tests.rb
excon-0.25.1 tests/timeout_tests.rb
excon-0.25.0 tests/timeout_tests.rb
excon-0.24.0 tests/timeout_tests.rb
excon-0.23.0 tests/timeout_tests.rb
excon-0.22.1 tests/timeout_tests.rb
excon-0.22.0 tests/timeout_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/excon-0.20.1/tests/timeout_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/excon-0.20.1/tests/timeout_tests.rb
excon-0.21.0 tests/timeout_tests.rb
excon-0.20.1 tests/timeout_tests.rb
excon-0.20.0 tests/timeout_tests.rb
excon-0.19.5 tests/timeout_tests.rb
excon-0.19.4 tests/timeout_tests.rb
excon-0.19.3 tests/timeout_tests.rb
excon-0.19.2 tests/timeout_tests.rb
excon-0.19.1 tests/timeout_tests.rb
excon-0.19.0 tests/timeout_tests.rb