Skip to content

Commit

Permalink
Update H5Dump.java
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmudd authored May 11, 2024
1 parent ca311f8 commit 9397ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jhdf/src/test/java/io/jhdf/h5dump/H5Dump.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public static HDF5FileXml dumpAndParse(Path path) throws IOException, Interrupte
processBuilder.command("h5dump", "--format=%.1lf", "--xml", path.toAbsolutePath().toString());
processBuilder.redirectErrorStream(true); // get stderr as well
Process process = processBuilder.start();
String xmlString = IOUtils.toString(process.getInputStream(), StandardCharsets.UTF_8);
process.waitFor(30, TimeUnit.SECONDS);
String xmlString = IOUtils.toString(process.getInputStream(), StandardCharsets.UTF_8);
logger.info("h5dump return [{}] output [{}]", process.exitValue(), xmlString);
// Validate
assertThat(process.exitValue(), is(equalTo(0)));
Expand Down

0 comments on commit 9397ef9

Please sign in to comment.