From 8fbe437ca690d92a6d75b1d5314b5aa3bf8787b9 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Fri, 17 Nov 2023 17:28:44 +0000 Subject: [PATCH] Tests: Ruby input.rewind is no longer required. For more information see: https://github.com/rack/rack/commit/42aff22f708123839ba706cbe659d108b47c40c7 --- test/ruby/input_rewind/config.ru | 8 -------- test/test_ruby_application.py | 9 --------- 2 files changed, 17 deletions(-) delete mode 100644 test/ruby/input_rewind/config.ru 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 @@ -163,15 +163,6 @@ def test_ruby_application_input_each(): assert client.post(body=body)['body'] == body, '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(