aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThomas Kriechbaumer <Kriechi@users.noreply.github.com>2016-08-16 10:10:39 +0200
committerGitHub <noreply@github.com>2016-08-16 10:10:39 +0200
commitbfe22e739cd96620ec17474e514350ff9a52e34e (patch)
tree7bb372f49789214ed5a5e3108cc0fb2b99836fdc /test
parent8ade51d4b464513b22d02ba82adeb96c2ed54503 (diff)
parent8f4baf42ea83e2a591c989ea79c4f8fd89db9552 (diff)
downloadmitmproxy-bfe22e739cd96620ec17474e514350ff9a52e34e.tar.gz
mitmproxy-bfe22e739cd96620ec17474e514350ff9a52e34e.tar.bz2
mitmproxy-bfe22e739cd96620ec17474e514350ff9a52e34e.zip
Merge pull request #1481 from Kriechi/http2-simplify-zombies
http2: simplify zombie detection
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_protocol_http2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mitmproxy/test_protocol_http2.py b/test/mitmproxy/test_protocol_http2.py
index f0fa9a40..873c89c3 100644
--- a/test/mitmproxy/test_protocol_http2.py
+++ b/test/mitmproxy/test_protocol_http2.py
@@ -849,15 +849,15 @@ class TestMaxConcurrentStreams(_Http2Test):
def test_max_concurrent_streams(self):
client, h2_conn = self._setup_connection()
new_streams = [1, 3, 5, 7, 9, 11]
- for id in new_streams:
+ for stream_id in new_streams:
# this will exceed MAX_CONCURRENT_STREAMS on the server connection
# and cause mitmproxy to throttle stream creation to the server
- self._send_request(client.wfile, h2_conn, stream_id=id, headers=[
+ self._send_request(client.wfile, h2_conn, stream_id=stream_id, headers=[
(':authority', "127.0.0.1:{}".format(self.server.server.address.port)),
(':method', 'GET'),
(':scheme', 'https'),
(':path', '/'),
- ('X-Stream-ID', str(id)),
+ ('X-Stream-ID', str(stream_id)),
])
ended_streams = 0