diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/scripts/all.py | 6 | ||||
-rw-r--r-- | test/test_server.py | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/test/scripts/all.py b/test/scripts/all.py index 15a5fc02..3acaf694 100644 --- a/test/scripts/all.py +++ b/test/scripts/all.py @@ -7,15 +7,15 @@ def serverconnect(ctx, cc): ctx.log("XSERVERCONNECT") log.append("serverconnect") -def request(ctx, r): +def request(ctx, f): ctx.log("XREQUEST") log.append("request") -def response(ctx, r): +def response(ctx, f): ctx.log("XRESPONSE") log.append("response") -def responseheaders(ctx, r): +def responseheaders(ctx, f): ctx.log("XRESPONSEHEADERS") log.append("responseheaders") diff --git a/test/test_server.py b/test/test_server.py index 795a749f..71f00d96 100644 --- a/test/test_server.py +++ b/test/test_server.py @@ -387,10 +387,9 @@ class MasterStreamRequest(tservers.TestMaster): """ Enables the stream flag on the flow for all requests """ - def handle_responseheaders(self, r): - f = self.state.add_response(r) - f.stream = True - r.reply() + def handle_responseheaders(self, f): + f.response.stream = True + f.reply() return f class TestStreamRequest(tservers.HTTPProxTest): |