summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2023-11-17 17:28:44 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2023-11-17 17:28:44 +0000
commit8fbe437ca690d92a6d75b1d5314b5aa3bf8787b9 (patch)
tree8628e96a9d3fe6c51c997c257f485ea7ff942519
parent1443d623d4b5d59e4463e025b4125be9a5aa3436 (diff)
downloadunit-8fbe437ca690d92a6d75b1d5314b5aa3bf8787b9.tar.gz
unit-8fbe437ca690d92a6d75b1d5314b5aa3bf8787b9.tar.bz2
Tests: Ruby input.rewind is no longer required.
For more information see: https://github.com/rack/rack/commit/42aff22f708123839ba706cbe659d108b47c40c7
-rw-r--r--test/ruby/input_rewind/config.ru8
-rw-r--r--test/test_ruby_application.py9
2 files changed, 0 insertions, 17 deletions
diff --git a/test/ruby/input_rewind/config.ru b/test/ruby/input_rewind/config.ru
deleted file mode 100644
index fc0d6535..00000000
--- a/test/ruby/input_rewind/config.ru
+++ /dev/null
@@ -1,8 +0,0 @@
-app = Proc.new do |env|
- env['rack.input'].read
- env['rack.input'].rewind
- body = env['rack.input'].read
- ['200', {'Content-Length' => body.length.to_s}, [body]]
-end
-
-run app
diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py
index f187cc45..fb161c61 100644
--- a/test/test_ruby_application.py
+++ b/test/test_ruby_application.py
@@ -164,15 +164,6 @@ def test_ruby_application_input_each():
@pytest.mark.skip('not yet')
-def test_ruby_application_input_rewind():
- client.load('input_rewind')
-
- body = '0123456789'
-
- assert client.post(body=body)['body'] == body, 'input rewind'
-
-
-@pytest.mark.skip('not yet')
def test_ruby_application_syntax_error(skip_alert):
skip_alert(
r'Failed to parse rack script',