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) { } }