Module Sinatra::Async::Test::Methods
In: lib/sinatra/async/test.rb

Methods

Included Modules

Rack::Test::Methods

Public Instance methods

Simulate a user closing the connection before a response is sent.

Executes the pending asynchronous blocks, required for the aget/apost/etc blocks to run.

Crank the eventmachine loop until a response is made, or timeout after a particular period, by default 10s. If the timeout is nil, no timeout will occur.

Uses EM.tick_loop or a periodic timer to check for changes

[Validate]