summaryrefslogtreecommitdiff
path: root/service/test/functional
diff options
context:
space:
mode:
authorNavaL <ayoyo@thoughtworks.com>2016-02-25 17:38:07 +0100
committerNavaL <ayoyo@thoughtworks.com>2016-02-25 17:38:07 +0100
commitdbb434b56e6b161a3b851ae6a81f96dff14a29da (patch)
treec0b8b53880a386b36bd48ddab3eafb6fe21b083d /service/test/functional
parent1e6518dd6577bf0dbec359fd4c1aec12ed6f2a64 (diff)
serving the client directly, as the current dependency on proxy strips out xsrf cookies
-fixing functional test Issue #612
Diffstat (limited to 'service/test/functional')
-rw-r--r--service/test/functional/features/environment.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/service/test/functional/features/environment.py b/service/test/functional/features/environment.py
index 37b5d612..2c07faf3 100644
--- a/service/test/functional/features/environment.py
+++ b/service/test/functional/features/environment.py
@@ -44,11 +44,9 @@ def before_all(context):
PixelatedSite.disable_csp_requests()
client = AppTestClient()
start_app_test_client(client, UserAgentMode(is_single_user=True))
- client.listenTCP()
- proxy = Proxy(proxy_port='8889', app_port='4567')
+ client.listenTCP(port=8889)
FeaturesResource.DISABLED_FEATURES.append('autoRefresh')
context.client = client
- context.call_to_terminate_proxy = proxy.run_on_a_thread()
multi_user_client = AppTestClient()
start_app_test_client(multi_user_client, UserAgentMode(is_single_user=False))
@@ -57,7 +55,7 @@ def before_all(context):
def after_all(context):
- context.call_to_terminate_proxy()
+ context.client.stop()
def before_feature(context, feature):