Skip to content

Commit 54a99b9

Browse files
committed
Split POST test because new dummy server can't handle continuouse POST request
1 parent 205bac7 commit 54a99b9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/net/http/test_http.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,11 @@ def test_get2
442442
def test_post
443443
start {|http|
444444
_test_post__base http
445+
}
446+
start {|http|
445447
_test_post__file http
448+
}
449+
start {|http|
446450
_test_post__no_data http
447451
}
448452
end
@@ -629,10 +633,12 @@ def test_request
629633
# _test_request__range http # WEBrick does not support Range: header.
630634
_test_request__HEAD http
631635
_test_request__POST http
632-
_test_request__stream_body http
633636
_test_request__uri http
634637
_test_request__uri_host http
635638
}
639+
start {|http|
640+
_test_request__stream_body http
641+
}
636642
end
637643

638644
def _test_request__GET(http)
@@ -843,8 +849,13 @@ def test_set_form
843849
__EOM__
844850
start {|http|
845851
_test_set_form_urlencoded(http, data.reject{|k,v|!v.is_a?(String)})
852+
}
853+
start {|http|
846854
@server.mount('/', lambda {|req, res| res.body = req.body })
847855
_test_set_form_multipart(http, false, data, expected)
856+
}
857+
start {|http|
858+
@server.mount('/', lambda {|req, res| res.body = req.body })
848859
_test_set_form_multipart(http, true, data, expected)
849860
}
850861
}

0 commit comments

Comments
 (0)