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

Version Path
excon-0.30.0 tests/timeout_tests.rb
excon-0.29.0 tests/timeout_tests.rb
excon-0.28.0 tests/timeout_tests.rb
excon-0.27.6 tests/timeout_tests.rb
excon-0.27.5 tests/timeout_tests.rb
excon-0.27.4 tests/timeout_tests.rb
excon-0.27.3 tests/timeout_tests.rb
excon-0.27.2 tests/timeout_tests.rb
excon-0.27.1 tests/timeout_tests.rb
excon-0.27.0 tests/timeout_tests.rb