Sha256: 1cb4d26492dcf6522c84b62b852010b7d2751d2f0db75c75436fa56f170b147b

Contents?: true

Size: 392 Bytes

Versions: 58

Compression:

Stored size: 392 Bytes

Contents

Shindo.tests('read should timeout') do
  with_rackup('timeout.ru') do

    [false, true].each do |nonblock|
      tests("nonblock => #{nonblock} hits read_timeout").raises(Excon::Errors::Timeout) do
        connection = Excon.new('http://127.0.0.1:9292', :nonblock => nonblock)
        connection.request(:method => :get, :path => '/timeout', :read_timeout => 1)
      end
    end

  end
end

Version data entries

58 entries across 56 versions & 4 rubygems

Version Path
excon-0.64.0 tests/timeout_tests.rb
excon-0.63.0 tests/timeout_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/excon-0.62.0/tests/timeout_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/excon-0.62.0/tests/timeout_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/excon-0.62.0/tests/timeout_tests.rb
excon-0.62.0 tests/timeout_tests.rb
excon-0.61.0 tests/timeout_tests.rb
excon-0.60.0 tests/timeout_tests.rb
excon-0.59.0 tests/timeout_tests.rb
excon-0.58.0 tests/timeout_tests.rb
excon-0.57.1 tests/timeout_tests.rb
excon-0.57.0 tests/timeout_tests.rb
excon-0.56.0 tests/timeout_tests.rb
excon-0.55.0 tests/timeout_tests.rb
excon-0.54.0 tests/timeout_tests.rb
excon-0.53.0 tests/timeout_tests.rb
excon-0.52.0 tests/timeout_tests.rb
excon-0.51.0 tests/timeout_tests.rb
excon-0.50.1 tests/timeout_tests.rb
excon-0.50.0 tests/timeout_tests.rb