Skip to content

Commit

Permalink
test: investigate node auto update test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Jun 19, 2024
1 parent 892bda1 commit 63672d7
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;

import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
Expand Down Expand Up @@ -559,8 +560,15 @@ private static FrontendVersion getVersion(String tool,
throw new IOException("Process exited with non 0 exit code. ("
+ exitCode + ")");
}
return FrontendUtils.parseFrontendVersion(
streamConsumer.getNow(new Pair<>("", "")).getFirst());
String version;
try {
version = streamConsumer.get().getFirst();
} catch (ExecutionException e) {
e.printStackTrace();
version = "";
}
return FrontendUtils.parseFrontendVersion(version);
// streamConsumer.getNow(new Pair<>("", "")).getFirst());
} catch (InterruptedException | IOException e) {
throw new InstallationException(String.format(
"Unable to detect version of %s. %s", tool,
Expand Down

0 comments on commit 63672d7

Please sign in to comment.