Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<quarkus.native.container-build>true</quarkus.native.container-build>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>3.38.1</quarkus.platform.version>
<quarkus.platform.version>3.38.2</quarkus.platform.version>

<skipITs>true</skipITs>

Expand Down
17 changes: 5 additions & 12 deletions src/test/java/io/hyperfoil/tools/h5m/cli/H5mTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,18 @@ private static String toCommand(String[] args) {
public static List<String> run(AeshLauncher launcher, String[]... args) {
List<String> outputs = new ArrayList<>();
for (String[] arg : args) {
// Brief pause before each command to allow aesh's readline cycle
// to set up stdinHandler after processing the previous command.
// Without this, command bytes may arrive while stdinHandler is null
// (between readline cycles) and be silently dropped.
// See: https://github.com/aeshell/aesh-readline/issues/233
try { Thread.sleep(50); } catch (InterruptedException e) { Thread.currentThread().interrupt(); }
// Minimal pause to let the aesh readline cycle complete between commands.
// The EventDecoder in aesh 3.16.8 buffers input when stdinHandler is null
// (preventing data loss), but the command still needs the readline cycle
// to start before it can be processed.
try { Thread.sleep(10); } catch (InterruptedException e) { Thread.currentThread().interrupt(); }
String command = toCommand(arg);
long start = System.currentTimeMillis();
String output = launcher.executeCommand(command, CMD_TIMEOUT);
long elapsed = System.currentTimeMillis() - start;
System.out.printf("run (%dms): %s%n", elapsed, command);
outputs.add(output);
}
// Additional pause after the last command before Quarkus shuts down
try { Thread.sleep(200); } catch (InterruptedException e) { Thread.currentThread().interrupt(); }
return outputs;
}

Expand All @@ -88,10 +85,6 @@ public void setup(QuarkusMainLauncher launcher) {
});
aeshLauncher = new AeshLauncherImpl(launcher);
aeshLauncher.launch();
// Brief pause after launch to allow aesh's readline to set up
// stdinHandler before the first command is sent.
// See: https://github.com/aeshell/aesh-readline/issues/233
try { Thread.sleep(50); } catch (InterruptedException e) { Thread.currentThread().interrupt(); }
}

@AfterEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public void setup(QuarkusMainLauncher launcher) {
});
aeshLauncher = new AeshLauncherImpl(launcher);
aeshLauncher.launch();
try { Thread.sleep(50); } catch (InterruptedException e) { Thread.currentThread().interrupt(); }
}

@AfterEach
Expand Down
Loading