From 7160f1b519aece0fe645d22a7d8fb954a43ad6fb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 10 Sep 2023 19:37:32 +0000 Subject: tests: move broken app test to Perl 5 integration test Less Ruby means fewer incompatibilities to worry about with every new version. --- test/unit/test_server.rb | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'test') diff --git a/test/unit/test_server.rb b/test/unit/test_server.rb index 0a710d1..2af12ea 100644 --- a/test/unit/test_server.rb +++ b/test/unit/test_server.rb @@ -127,20 +127,6 @@ class WebServerTest < Test::Unit::TestCase sock.close end - def test_broken_app - teardown - app = lambda { |env| raise RuntimeError, "hello" } - # [200, {}, []] } - redirect_test_io do - @server = HttpServer.new(app, :listeners => [ "127.0.0.1:#@port"] ) - @server.start - end - sock = tcp_socket('127.0.0.1', @port) - sock.syswrite("GET / HTTP/1.0\r\n\r\n") - assert_match %r{\AHTTP/1.[01] 500\b}, sock.sysread(4096) - assert_nil sock.close - end - def test_simple_server results = hit(["http://localhost:#{@port}/test"]) assert_equal 'hello!\n', results[0], "Handler didn't really run" -- cgit v1.2.3-24-ge0c7