From b22a4f94abd7f059c4c0e2294bd5f79625ef11e8 Mon Sep 17 00:00:00 2001 From: Yukio Onozuka Date: Fri, 13 Dec 2019 07:52:34 +0900 Subject: [PATCH] when call event. remove runtime event. --- test/editor/pageobjects/editor/workspace_page.js | 1 + 1 file changed, 1 insertion(+) 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(); } });