aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorUjjwal Verma <ujjwalverma1111@gmail.com>2017-06-02 23:43:15 +0530
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2017-07-04 10:52:50 +0200
commit47c9604aed6049d99b8605419a7edc90935a8006 (patch)
treefdf81a252364788f5ecee30d49858a5cb07685eb /test
parentf3231ed758324a7de465ee5a377f9c40b0a8df34 (diff)
downloadmitmproxy-47c9604aed6049d99b8605419a7edc90935a8006.tar.gz
mitmproxy-47c9604aed6049d99b8605419a7edc90935a8006.tar.bz2
mitmproxy-47c9604aed6049d99b8605419a7edc90935a8006.zip
request streaming for HTTP/1
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/proxy/protocol/test_http1.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/mitmproxy/proxy/protocol/test_http1.py b/test/mitmproxy/proxy/protocol/test_http1.py
index 1eff8666..4cca370c 100644
--- a/test/mitmproxy/proxy/protocol/test_http1.py
+++ b/test/mitmproxy/proxy/protocol/test_http1.py
@@ -1,7 +1,6 @@
from unittest import mock
import pytest
-from mitmproxy import exceptions
from mitmproxy.test import tflow
from mitmproxy.net.http import http1
from mitmproxy.net.tcp import TCPClient
@@ -108,9 +107,5 @@ class TestStreaming(tservers.HTTPProxyTest):
r = p.request("post:'%s/p/200:b@10000'" % self.server.urlbase)
assert len(r.content) == 10000
- if streaming:
- with pytest.raises(exceptions.HttpReadDisconnect): # as the assertion in assert_write fails
- # request with 10000 bytes
- p.request("post:'%s/p/200':b@10000" % self.server.urlbase)
- else:
- assert p.request("post:'%s/p/200':b@10000" % self.server.urlbase)
+ # request with 10000 bytes
+ assert p.request("post:'%s/p/200':b@10000" % self.server.urlbase)