mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JdkVersionDetectorImpl: ensure the output is fully read
should fix NewProjectWizardTest flakiness
This commit is contained in:
@@ -118,7 +118,7 @@ public class JdkVersionDetectorImpl extends JdkVersionDetector {
|
||||
Process process = new ProcessBuilder(javaExe, "-version").redirectErrorStream(true).start();
|
||||
VersionOutputReader reader = new VersionOutputReader(process.getInputStream(), runner);
|
||||
try {
|
||||
process.waitFor();
|
||||
reader.waitFor();
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
LOG.info(e);
|
||||
|
||||
Reference in New Issue
Block a user