Bug 1058111 Fix functional test setup for Loop to set the correct public server address so that websocket connections work correctly. r=dmose
authorMark Banner <standard8@mozilla.com>
Tue, 26 Aug 2014 09:12:01 +0100
changeset 223199 3d3f1028e29da7de8502a6aeede37ec066867dc2
parent 223198 d3b46bc636ad02747c1f9a9689784bf225fbb5d9
child 223200 4caf6e377db5d0298eeb9b5dfa4b795adfe77857
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdmose
bugs1058111
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1058111 Fix functional test setup for Loop to set the correct public server address so that websocket connections work correctly. r=dmose
browser/components/loop/test/functional/serversetup.py
--- a/browser/components/loop/test/functional/serversetup.py
+++ b/browser/components/loop/test/functional/serversetup.py
@@ -27,16 +27,17 @@ WEB_APP_URL = "http://localhost:" + str(
               "/content/#call/{token}"
 
 LOOP_SERVER_COMMAND = ["make", "runserver"]
 LOOP_SERVER_ENV = os.environ.copy()
 # Set PORT so that it does not interfere with any other
 # development server that might be running
 LOOP_SERVER_ENV.update({"NODE_ENV": "dev",
                         "PORT": str(LOOP_SERVER_PORT),
+                        "SERVER_ADDRESS": "localhost:" + str(LOOP_SERVER_PORT),
                         "WEB_APP_URL": WEB_APP_URL})
 
 
 class LoopTestServers:
     def __init__(self):
         self.loop_server = self.start_loop_server()
         self.content_server = self.start_content_server()