From 5a942d6e5a32a44326e44b663a2b6749b41ade0e Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 8 Nov 2024 16:24:54 +0100 Subject: [PATCH] Fix close connection call browser process controller (#3107) --- js/test/Common/ControllerI.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/test/Common/ControllerI.js b/js/test/Common/ControllerI.js index 7c0ecd35cd4..cca9656209b 100644 --- a/js/test/Common/ControllerI.js +++ b/js/test/Common/ControllerI.js @@ -52,12 +52,11 @@ class ProcessI extends Test.Common.Process { } class ProcessControllerI extends Test.Common.BrowserProcessController { - constructor(clientOutput, serverOutput, useWorker, scripts) { + constructor(clientOutput, serverOutput, useWorker) { super(); this._clientOutput = clientOutput; this._serverOutput = serverOutput; this._useWorker = useWorker; - this._scripts = scripts; } async start(testSuite, exe, args, current) { @@ -114,12 +113,12 @@ class ProcessControllerI extends Test.Common.BrowserProcessController { } redirect(url, current) { - current.con.close(Ice.ConnectionClose.Gracefully); + current.con.close(); window.location.href = url; } } -export async function runController(clientOutput, serverOutput, scripts) { +export async function runController(clientOutput, serverOutput) { class Output { constructor(output) { this.output = output; @@ -181,7 +180,7 @@ export async function runController(clientOutput, serverOutput, scripts) { const registry = Test.Common.ProcessControllerRegistryPrx.uncheckedCast(comm.stringToProxy(str)); const adapter = await comm.createObjectAdapter(""); const ident = new Ice.Identity("ProcessController", "Browser"); - const processController = adapter.add(new ProcessControllerI(out, serverOut, worker, scripts), ident); + const processController = adapter.add(new ProcessControllerI(out, serverOut, worker), ident); registerProcessController(adapter, registry, processController); } catch (ex) { out.writeLine("unexpected exception while creating controller:\n" + ex.toString());