diff --git a/test/editor/pageobjects/editor/workspace_page.js b/test/editor/pageobjects/editor/workspace_page.js index 560a0992f..75dfff9cb 100644 --- a/test/editor/pageobjects/editor/workspace_page.js +++ b/test/editor/pageobjects/editor/workspace_page.js @@ -72,6 +72,7 @@ function deploy() { return when.promise(function(resolve, reject) { events.on("runtime-event", function(event) { if (event.id === 'runtime-deploy') { + events.removeListener("runtime-event", arguments.callee); resolve(); } });