-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests - clean up - three commits (#1903)
* tests - cleanup rackup folder, add sleep.ru, add helpers/app.rb * tests - change nextport to UniquePort.call, remove nextport, mutex clean up, mutex removes port issues with parallel testing * test_integration.rb - make UNIXSocket file names unique
- Loading branch information
1 parent
b4ff8e1
commit 9efac9e
Showing
16 changed files
with
46 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module TestApps | ||
|
||
# call with "GET /sleep<d> HTTP/1.1\r\n\r\n", where is the number of | ||
# seconds to sleep | ||
# same as rackup/sleep.ru | ||
SLEEP = -> (env) do | ||
dly = (env['REQUEST_PATH'][/\/sleep(\d+)/,1] || '0').to_i | ||
sleep dly | ||
[200, {"Content-Type" => "text/plain"}, ["Slept #{dly}"]] | ||
end | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# call with "GET /sleep<d> HTTP/1.1\r\n\r\n", where <d> is the number of | ||
# seconds to sleep | ||
# same as TestApps::SLEEP | ||
|
||
run lambda { |env| | ||
dly = (env['REQUEST_PATH'][/\/sleep(\d+)/,1] || '0').to_i | ||
sleep dly | ||
[200, {"Content-Type" => "text/plain"}, ["Slept #{dly}"]] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters