Sha256: a655e68b73399e01b94885b02c96917c1a4664d5a01b4f72616328497ba86c80

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

with_rackup('timeout.ru') do
  Shindo.tests('read should timeout') do
    connection = Excon.new('http://127.0.0.1:9292')

    tests('hits read_timeout').raises(Excon::Errors::Timeout) do
      connection.request(:method => :get, :path => '/timeout', :read_timeout => 1)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
excon-0.15.5 tests/timeout_tests.rb