Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ NIO4R_PURE=true bundle exec rspec
~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/socket.rb:97: warning: shadowing outer local variable - task
~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/socket.rb:180: warning: shadowing outer local variable - task
~/dev/bugs/truffleruby/falcon/lib/falcon/verbose.rb:52: warning: shadowing outer local variable - statistics
~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/shared_endpoint.rb:29: warning: shadowing outer local variable - endpoint
~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/shared_endpoint.rb:70: warning: shadowing outer local variable - task
~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/shared_endpoint.rb:88: warning: shadowing outer local variable - task
~/.gem/truffleruby/2.4.4/gems/samovar-1.9.1/lib/samovar/command.rb:97: warning: shadowing outer local variable - rows
~/dev/bugs/truffleruby/falcon/lib/falcon/hosts.rb:223: warning: shadowing outer local variable - task
~/dev/bugs/truffleruby/falcon/lib/falcon/hosts.rb:234: warning: shadowing outer local variable - task
~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:39: warning: shadowing outer local variable - task
~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/memory/limit_allocations.rb:41: warning: shadowing outer local variable - count
~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/ssl.rb:159: warning: shadowing outer local variable - context
Falcon::Adapters::Input
with body
#read(length, buffer)
can read partial input
can read all input
with large body
allocates expected amount of memory
#read
can read all input
can read no input
can read partial input
can read partial input with buffer
with large body
allocates expected amount of memory
#gets
can read chunks
returns remainder after calling #read
#each
can read chunks
#eof?
should not be at end of file
#rewind
reads same chunk again
clears unread buffer
without body
#read(length, buffer)
can read no input
can read partial input
#read
can read all input
can read no input
can read partial input
#gets
can read chunks
#eof?
should be at end of file
Falcon::Adapters::Output
with empty body
should be empty?
with single string body
should not be empty?
Falcon::Adapters::Rack
#unwrap_headers
should merge duplicate headers
HTTP_HOST
get valid HTTP_HOST (FAILED - 1)
websockets
can send and receive messages using websockets (FAILED - 2)
Falcon::Adapters::Response
with multiple set-cookie headers
should generate multiple headers
with #to_path
should generate file body
should not modify partial responses
with content-length
should remove header
Falcon::Command::Serve
I, [2018-11-06T23:54:23.363000 #41204] INFO -- : Falcon taking flight! Binding to #<Falcon::Endpoint https://localhost:9292/ {:port=>8090}> [Async::Container::Forked with concurrency: 4]
can listen on specified port (FAILED - 3)
Falcon::Proxy
E, [2018-11-06T23:54:24.458000 #41204] ERROR -- #<Falcon::Proxy:0x1ad2>: expected the first argument to be a Integer, Symbol, String, or Socket::Option (TypeError)
~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:106:in `call'
~/dev/bugs/truffleruby/falcon/lib/falcon/proxy.rb:121:in `call'
~/dev/bugs/truffleruby/falcon/spec/falcon/proxy_spec.rb:43:in `block (2 levels) in <top (required)>'
~/.gem/truffleruby/2.4.4/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:254:in `instance_exec'
~/.gem/truffleruby/2.4.4/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:254:in `block in run'
~/.gem/truffleruby/2.4.4/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks'
~/.gem/truffleruby/2.4.4/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:457:in `block in with_around_example_hooks'
~/.gem/truffleruby/2.4.4/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:464:in `block in run'
~/.gem/truffleruby/2.4.4/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:604:in `block in run_around_example_hooks_for'
~/.gem/truffleruby/2.4.4/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:342:in `call'
~/.gem/truffleruby/2.4.4/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:342:in `call'
~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
can select client based on authority (FAILED - 4)
defers if no host is available
Falcon::Server
http client
can POST application/x-www-form-urlencoded (FAILED - 5)
can POST multipart/form-data (FAILED - 6)
GET /
generates successful response (FAILED - 7)
generates server and date headers (FAILED - 8)
broken middleware
results in a 500 error if middleware raises an exception (FAILED - 9)
Falcon::Server with SSL
basic middleware
client can get resource (FAILED - 10)
Falcon::Server
can start server (FAILED - 11)
Failures:
1) Falcon::Adapters::Rack HTTP_HOST get valid HTTP_HOST
Got 0 failures and 2 other errors:
1.1) Failure/Error: let(:response) {client.get("/")}
Async::Stop:
Async::Stop
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/socket.rb:151:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:49:in `block in connect'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `each'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `foreach'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:47:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/url_endpoint.rb:158:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:117:in `block in make_pool'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `create'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:154:in `available_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:116:in `wait_for_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:58:in `acquire'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:80:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/middleware.rb:36:in `get'
# ./spec/falcon/adapters/rack_spec.rb:49:in `response'
# ./spec/falcon/adapters/rack_spec.rb:52:in `block (3 levels) in <top (required)>'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
# ------------------
# --- Caused by: ---
# Async::TimeoutError:
# run time exceeded duration 60s:
# <Async::Reactor:0x1a54 stopped=false>
# <Async::Task:0x1a58 RSpec::ExampleGroups::FalconAdaptersRack::HTTPHOST status=running>
# <Async::Task:0x1a5c timer task duration=60 status=running>
# <Async::Task:0x1a60 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1a64 status=complete>
# <Async::Task:0x1a68 accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1a6c incoming connection #<Addrinfo: 127.0.0.1:51762 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
1.2) Failure/Error: raise
Async::TimeoutError:
run time exceeded duration 60s:
<Async::Reactor:0x1a54 stopped=false>
<Async::Task:0x1a58 RSpec::ExampleGroups::FalconAdaptersRack::HTTPHOST status=running>
<Async::Task:0x1a5c timer task duration=60 status=running>
<Async::Task:0x1a60 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1a64 status=complete>
<Async::Task:0x1a68 accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1a6c incoming connection #<Addrinfo: 127.0.0.1:51762 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `resume'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `block in sleep'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `call'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:45:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:83:in `block in fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `reverse_each'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:100:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:85:in `wait'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:152:in `run'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:32:in `run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:82:in `block (2 levels) in RSpec'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/leaks.rb:42:in `block (2 levels) in RSpec'
2) Falcon::Adapters::Rack websockets can send and receive messages using websockets
Got 0 failures and 2 other errors:
2.1) Failure/Error: socket = endpoint.connect
Async::Stop:
Async::Stop
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/socket.rb:151:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:49:in `block in connect'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `each'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `foreach'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:47:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/url_endpoint.rb:158:in `connect'
# ./spec/falcon/adapters/rack_spec.rb:81:in `block (3 levels) in <top (required)>'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
# ------------------
# --- Caused by: ---
# Async::TimeoutError:
# run time exceeded duration 60s:
# <Async::Reactor:0x1a74 stopped=false>
# <Async::Task:0x1a78 RSpec::ExampleGroups::FalconAdaptersRack::Websockets status=running>
# <Async::Task:0x1a7c timer task duration=60 status=running>
# <Async::Task:0x1a80 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1a84 status=complete>
# <Async::Task:0x1a88 accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1a8c incoming connection #<Addrinfo: 127.0.0.1:51771 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
2.2) Failure/Error: raise
Async::TimeoutError:
run time exceeded duration 60s:
<Async::Reactor:0x1a74 stopped=false>
<Async::Task:0x1a78 RSpec::ExampleGroups::FalconAdaptersRack::Websockets status=running>
<Async::Task:0x1a7c timer task duration=60 status=running>
<Async::Task:0x1a80 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1a84 status=complete>
<Async::Task:0x1a88 accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1a8c incoming connection #<Addrinfo: 127.0.0.1:51771 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `resume'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `block in sleep'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `call'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:45:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:83:in `block in fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `reverse_each'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:100:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:85:in `wait'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:152:in `run'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:32:in `run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:82:in `block (2 levels) in RSpec'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/leaks.rb:42:in `block (2 levels) in RSpec'
3) Falcon::Command::Serve can listen on specified port
Failure/Error: container_class.new(concurrency: @options[:concurrency], name: "Falcon Server") do |task, instance|
NotImplementedError:
fork is not available
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:40:in `fork'
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:40:in `block in initialize'
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:39:in `collect'
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:39:in `each'
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:39:in `each_with_block'
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:39:in `times'
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:39:in `__send__'
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:39:in `each_with_block'
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:39:in `each'
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:39:in `collect'
# ~/.gem/truffleruby/2.4.4/gems/async-container-0.8.1/lib/async/container/forked.rb:39:in `initialize'
# ./lib/falcon/command/serve.rb:105:in `new'
# ./lib/falcon/command/serve.rb:105:in `run'
# ./spec/falcon/command/serve_spec.rb:31:in `block (2 levels) in <top (required)>'
4) Falcon::Proxy can select client based on authority
Failure/Error: expect(response).to_not be_failure
expected `#<Async::HTTP::Response:0x1ad4 @body=nil, @headers={"content-type"=>"text/plain"}, @reason=nil, @status=502, @version=nil>.failure?` to return false, got true
# ./spec/falcon/proxy_spec.rb:46:in `block (2 levels) in <top (required)>'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
5) Falcon::Server http client can POST application/x-www-form-urlencoded
Got 0 failures and 2 other errors:
5.1) Failure/Error: response = client.post("/", {'content-type' => 'application/x-www-form-urlencoded'}, ['hello=world'])
Async::Stop:
Async::Stop
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/socket.rb:151:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:49:in `block in connect'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `each'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `foreach'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:47:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/url_endpoint.rb:158:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:117:in `block in make_pool'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `create'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:154:in `available_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:116:in `wait_for_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:58:in `acquire'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:80:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/middleware.rb:36:in `post'
# ./spec/falcon/server_spec.rb:59:in `block (3 levels) in <top (required)>'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
# ------------------
# --- Caused by: ---
# Async::TimeoutError:
# run time exceeded duration 60s:
# <Async::Reactor:0x1afa stopped=false>
# <Async::Task:0x1afe RSpec::ExampleGroups::FalconServer::HttpClient status=running>
# <Async::Task:0x1b02 timer task duration=60 status=running>
# <Async::Task:0x1b06 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1b0a status=complete>
# <Async::Task:0x1b0e accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1b12 incoming connection #<Addrinfo: 127.0.0.1:51780 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
5.2) Failure/Error: raise
Async::TimeoutError:
run time exceeded duration 60s:
<Async::Reactor:0x1afa stopped=false>
<Async::Task:0x1afe RSpec::ExampleGroups::FalconServer::HttpClient status=running>
<Async::Task:0x1b02 timer task duration=60 status=running>
<Async::Task:0x1b06 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1b0a status=complete>
<Async::Task:0x1b0e accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1b12 incoming connection #<Addrinfo: 127.0.0.1:51780 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `resume'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `block in sleep'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `call'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:45:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:83:in `block in fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `reverse_each'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:100:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:85:in `wait'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:152:in `run'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:32:in `run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:82:in `block (2 levels) in RSpec'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/leaks.rb:42:in `block (2 levels) in RSpec'
6) Falcon::Server http client can POST multipart/form-data
Got 0 failures and 2 other errors:
6.1) Failure/Error: response = client.post("/", {'content-type' => 'multipart/form-data; boundary=multipart'}, ["--multipart\r\n", "Content-Disposition: form-data; name=\"hello\"\r\n\r\n", "world\r\n", "--multipart--"])
Async::Stop:
Async::Stop
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/socket.rb:151:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:49:in `block in connect'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `each'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `foreach'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:47:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/url_endpoint.rb:158:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:117:in `block in make_pool'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `create'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:154:in `available_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:116:in `wait_for_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:58:in `acquire'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:80:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/middleware.rb:36:in `post'
# ./spec/falcon/server_spec.rb:66:in `block (3 levels) in <top (required)>'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
# ------------------
# --- Caused by: ---
# Async::TimeoutError:
# run time exceeded duration 60s:
# <Async::Reactor:0x1b1a stopped=false>
# <Async::Task:0x1b1e RSpec::ExampleGroups::FalconServer::HttpClient status=running>
# <Async::Task:0x1b22 timer task duration=60 status=running>
# <Async::Task:0x1b26 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1b2a status=complete>
# <Async::Task:0x1b2e accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1b32 incoming connection #<Addrinfo: 127.0.0.1:51788 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
6.2) Failure/Error: raise
Async::TimeoutError:
run time exceeded duration 60s:
<Async::Reactor:0x1b1a stopped=false>
<Async::Task:0x1b1e RSpec::ExampleGroups::FalconServer::HttpClient status=running>
<Async::Task:0x1b22 timer task duration=60 status=running>
<Async::Task:0x1b26 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1b2a status=complete>
<Async::Task:0x1b2e accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1b32 incoming connection #<Addrinfo: 127.0.0.1:51788 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `resume'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `block in sleep'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `call'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:45:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:83:in `block in fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `reverse_each'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:100:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:85:in `wait'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:152:in `run'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:32:in `run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:82:in `block (2 levels) in RSpec'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/leaks.rb:42:in `block (2 levels) in RSpec'
7) Falcon::Server http client GET / generates successful response
Got 0 failures and 2 other errors:
7.1) Failure/Error: let(:response) {client.get("/")}
Async::Stop:
Async::Stop
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/socket.rb:151:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:49:in `block in connect'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `each'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `foreach'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:47:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/url_endpoint.rb:158:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:117:in `block in make_pool'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `create'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:154:in `available_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:116:in `wait_for_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:58:in `acquire'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:80:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/middleware.rb:36:in `get'
# ./spec/falcon/server_spec.rb:44:in `response'
# ./spec/falcon/server_spec.rb:47:in `block (4 levels) in <top (required)>'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
# ------------------
# --- Caused by: ---
# Async::TimeoutError:
# run time exceeded duration 60s:
# <Async::Reactor:0x1b3a stopped=false>
# <Async::Task:0x1b3e RSpec::ExampleGroups::FalconServer::HttpClient::GET status=running>
# <Async::Task:0x1b42 timer task duration=60 status=running>
# <Async::Task:0x1b46 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1b4a status=complete>
# <Async::Task:0x1b4e accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1b52 incoming connection #<Addrinfo: 127.0.0.1:51794 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
7.2) Failure/Error: raise
Async::TimeoutError:
run time exceeded duration 60s:
<Async::Reactor:0x1b3a stopped=false>
<Async::Task:0x1b3e RSpec::ExampleGroups::FalconServer::HttpClient::GET status=running>
<Async::Task:0x1b42 timer task duration=60 status=running>
<Async::Task:0x1b46 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1b4a status=complete>
<Async::Task:0x1b4e accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1b52 incoming connection #<Addrinfo: 127.0.0.1:51794 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `resume'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `block in sleep'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `call'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:45:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:83:in `block in fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `reverse_each'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:100:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:85:in `wait'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:152:in `run'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:32:in `run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:82:in `block (2 levels) in RSpec'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/leaks.rb:42:in `block (2 levels) in RSpec'
8) Falcon::Server http client GET / generates server and date headers
Got 0 failures and 2 other errors:
8.1) Failure/Error: let(:response) {client.get("/")}
Async::Stop:
Async::Stop
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/socket.rb:151:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:49:in `block in connect'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `each'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `foreach'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:47:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/url_endpoint.rb:158:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:117:in `block in make_pool'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `create'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:154:in `available_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:116:in `wait_for_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:58:in `acquire'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:80:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/middleware.rb:36:in `get'
# ./spec/falcon/server_spec.rb:44:in `response'
# ./spec/falcon/server_spec.rb:52:in `block (4 levels) in <top (required)>'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
# ------------------
# --- Caused by: ---
# Async::TimeoutError:
# run time exceeded duration 60s:
# <Async::Reactor:0x1b5a stopped=false>
# <Async::Task:0x1b5e RSpec::ExampleGroups::FalconServer::HttpClient::GET status=running>
# <Async::Task:0x1b62 timer task duration=60 status=running>
# <Async::Task:0x1b66 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1b6a status=complete>
# <Async::Task:0x1b6e accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1b72 incoming connection #<Addrinfo: 127.0.0.1:51800 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
8.2) Failure/Error: raise
Async::TimeoutError:
run time exceeded duration 60s:
<Async::Reactor:0x1b5a stopped=false>
<Async::Task:0x1b5e RSpec::ExampleGroups::FalconServer::HttpClient::GET status=running>
<Async::Task:0x1b62 timer task duration=60 status=running>
<Async::Task:0x1b66 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1b6a status=complete>
<Async::Task:0x1b6e accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1b72 incoming connection #<Addrinfo: 127.0.0.1:51800 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `resume'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `block in sleep'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `call'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:45:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:83:in `block in fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `reverse_each'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:100:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:85:in `wait'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:152:in `run'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:32:in `run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:82:in `block (2 levels) in RSpec'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/leaks.rb:42:in `block (2 levels) in RSpec'
9) Falcon::Server broken middleware results in a 500 error if middleware raises an exception
Got 0 failures and 2 other errors:
9.1) Failure/Error: response = client.get("/", {})
Async::Stop:
Async::Stop
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/socket.rb:151:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:49:in `block in connect'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `each'
# ~/.rubies/truffleruby-1.0.0-rc8/lib/truffle/socket/mri.rb:290:in `foreach'
# ~/.gem/truffleruby/2.4.4/gems/async-io-1.16.3/lib/async/io/host_endpoint.rb:47:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/url_endpoint.rb:158:in `connect'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:117:in `block in make_pool'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:127:in `create'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:154:in `available_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:116:in `wait_for_resource'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/pool.rb:58:in `acquire'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:80:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/middleware.rb:36:in `get'
# ./spec/falcon/server_spec.rb:81:in `block (3 levels) in <top (required)>'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
# ------------------
# --- Caused by: ---
# Async::TimeoutError:
# run time exceeded duration 60s:
# <Async::Reactor:0x1b7a stopped=false>
# <Async::Task:0x1b7e RSpec::ExampleGroups::FalconServer::BrokenMiddleware status=running>
# <Async::Task:0x1b82 timer task duration=60 status=running>
# <Async::Task:0x1b86 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1b8a status=complete>
# <Async::Task:0x1b8e accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
# <Async::Task:0x1b92 incoming connection #<Addrinfo: 127.0.0.1:51808 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
9.2) Failure/Error: raise
Async::TimeoutError:
run time exceeded duration 60s:
<Async::Reactor:0x1b7a stopped=false>
<Async::Task:0x1b7e RSpec::ExampleGroups::FalconServer::BrokenMiddleware status=running>
<Async::Task:0x1b82 timer task duration=60 status=running>
<Async::Task:0x1b86 connecting to #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1b8a status=complete>
<Async::Task:0x1b8e accepting connections #<Addrinfo: 127.0.0.1:9294 TCP> status=running>
<Async::Task:0x1b92 incoming connection #<Addrinfo: 127.0.0.1:51808 TCP> status=running>
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:85:in `block in initialize'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `resume'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:225:in `block in sleep'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `call'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/timer.rb:103:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:45:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:83:in `block in fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `reverse_each'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/events.rb:82:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:100:in `fire'
# ~/.gem/truffleruby/2.4.4/gems/timers-4.2.0/lib/timers/group.rb:85:in `wait'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/reactor.rb:152:in `run'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:32:in `run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:82:in `block (2 levels) in RSpec'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/leaks.rb:42:in `block (2 levels) in RSpec'
10) Falcon::Server with SSL basic middleware client can get resource
Failure/Error: response = client.get("/", {})
TypeError:
expected the first argument to be a Integer, Symbol, String, or Socket::Option
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:106:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/middleware.rb:36:in `get'
# ./spec/falcon/ssl_server_spec.rb:63:in `block (3 levels) in <top (required)>'
# ./spec/falcon/ssl_server_spec.rb:49:in `block (2 levels) in <top (required)>'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
11) Falcon::Server can start server
Failure/Error: response = client.post("/", {}, ["Hello World"])
TypeError:
expected the first argument to be a Integer, Symbol, String, or Socket::Option
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/client.rb:106:in `call'
# ~/.gem/truffleruby/2.4.4/gems/async-http-0.37.0/lib/async/http/middleware.rb:36:in `post'
# ./spec/rack/handler/falcon_spec.rb:43:in `block (2 levels) in <top (required)>'
# ~/.gem/truffleruby/2.4.4/gems/async-rspec-1.11.1/lib/async/rspec/reactor.rb:55:in `block (2 levels) in run_example'
# ~/.gem/truffleruby/2.4.4/gems/async-1.10.3/lib/async/task.rb:74:in `block in initialize'
Finished in 7 minutes 19 seconds (files took 7.32 seconds to load)
40 examples, 11 failures
Failed examples:
rspec ./spec/falcon/adapters/rack_spec.rb:51 # Falcon::Adapters::Rack HTTP_HOST get valid HTTP_HOST
rspec ./spec/falcon/adapters/rack_spec.rb:80 # Falcon::Adapters::Rack websockets can send and receive messages using websockets
rspec ./spec/falcon/command/serve_spec.rb:24 # Falcon::Command::Serve can listen on specified port
rspec ./spec/falcon/proxy_spec.rb:38 # Falcon::Proxy can select client based on authority
rspec ./spec/falcon/server_spec.rb:58 # Falcon::Server http client can POST application/x-www-form-urlencoded
rspec ./spec/falcon/server_spec.rb:65 # Falcon::Server http client can POST multipart/form-data
rspec ./spec/falcon/server_spec.rb:46 # Falcon::Server http client GET / generates successful response
rspec ./spec/falcon/server_spec.rb:51 # Falcon::Server http client GET / generates server and date headers
rspec ./spec/falcon/server_spec.rb:80 # Falcon::Server broken middleware results in a 500 error if middleware raises an exception
rspec ./spec/falcon/ssl_server_spec.rb:62 # Falcon::Server with SSL basic middleware client can get resource
rspec ./spec/rack/handler/falcon_spec.rb:36 # Falcon::Server can start server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment