From 48ec387db4fb60ec2f65e1994db9723ae473ad50 Mon Sep 17 00:00:00 2001 From: OlegDokuka Date: Thu, 17 Oct 2024 16:24:37 +0300 Subject: [PATCH] increase await time Signed-off-by: OlegDokuka --- .../java/org/openrewrite/javascript/JavaScriptParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptParser.java b/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptParser.java index 2564e580..c21e1721 100644 --- a/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptParser.java +++ b/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptParser.java @@ -325,12 +325,12 @@ private void initializeRemoting(ExecutionContext ctx) throws IOException { processBuilder.redirectError(new File("/dev/null")); } nodeProcess = processBuilder.start(); - for (int i = 0; i < 5 && nodeProcess.isAlive(); i++) { + for (int i = 0; i < 30 && nodeProcess.isAlive(); i++) { if (isServerRunning(port)) { break; } try { - Thread.sleep(50); + Thread.sleep(100); } catch (InterruptedException ignore) { } }