diff options
author | Benoit Foucher <benoit@zeroc.com> | 2019-02-19 12:40:56 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2019-02-19 12:40:56 +0100 |
commit | 4ee072f2495ccd38ebcee11b30b32949a9631170 (patch) | |
tree | 42726abde98b4c49f012b380a625ff8e7234d21e /scripts/Util.py | |
parent | Fixed formatting bug (diff) | |
download | ice-4ee072f2495ccd38ebcee11b30b32949a9631170.tar.bz2 ice-4ee072f2495ccd38ebcee11b30b32949a9631170.tar.xz ice-4ee072f2495ccd38ebcee11b30b32949a9631170.zip |
Fixed macOS Chrome test failures
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index b98810e8bcc..3ae9358174a 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -2669,13 +2669,20 @@ class BrowserProcessController(RemoteProcessController): self.host) if url != self.url: self.url = url + ident = current.driver.getCommunicator().stringToIdentity("Browser/ProcessController") if self.driver: + # Clear the previous controller connection if it exists. This ensures that the reload + # of the test controller will use a new connection (with Chrome the connection close + # callback for the old page is sometime called after the new paged is loaded). + with self.cond: + if ident in self.processControllerProxies: + prx = self.processControllerProxies[ident] + self.clearProcessController(prx, prx.ice_getCachedConnection()) self.driver.get(url) else: # If no process controller is registered, we request the user to load the controller # page in the browser. Once loaded, the controller will register and we'll redirect to # the correct testsuite page. - ident = current.driver.getCommunicator().stringToIdentity("Browser/ProcessController") prx = None with self.cond: while True: |