You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as a replacement, and also used a constant lambda defined in `helper.rb'.
This came about when thinking of tests for external KILL/TERM, graceful shutdown, phased-restarts, etc. A way to clearly create requests with specific time delays seems needed.
The above needs a GET of '/<x>sec', where <x> is an integer, and replies with 'Delayed <x>'.
Hence, two questions:
Stupid idea or otherwise?
If a 'good' idea', what to name the file, the constant, the GET and the reply? Kind of sensitive to ESL issues, as contributors are worldwide...
The text was updated successfully, but these errors were encountered:
I think we could add it a new "helpers/apps.rb" file that's required by test/helper. Namespace something like ExampleRackApps::SLEEP. I think you should just use the world sleep as it describes what the app actually does, which is call sleep.
There are several files in the test/rackup folder, and a few make use of
sleep
, with varying times.The same thing may be done when 'app' lambdas are declared in a test method. I've worked locally and in my fork with a file similar to:
as a replacement, and also used a constant lambda defined in `helper.rb'.
This came about when thinking of tests for external KILL/TERM, graceful shutdown, phased-restarts, etc. A way to clearly create requests with specific time delays seems needed.
The above needs a GET of '/<x>sec', where <x> is an integer, and replies with 'Delayed <x>'.
Hence, two questions:
The text was updated successfully, but these errors were encountered: