Skip to content

Commit

Permalink
Attempt to fix test failing on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
melix committed Jul 2, 2021
1 parent 019c4e1 commit a84a0c9
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ class GraalVMContainer extends GenericContainer<GraalVMContainer> {
System.err.println(outputFrame.utf8String)
}
}
FrameConsumerResultCallback callback = new FrameConsumerResultCallback()
callback.addConsumer(OutputFrame.OutputType.STDOUT, stdoutConsumer)
callback.addConsumer(OutputFrame.OutputType.STDERR, stderrConsumer)
dockerClient.execStartCmd(execCreateCmdResponse.getId()).exec(callback).awaitCompletion()
try (FrameConsumerResultCallback callback = new FrameConsumerResultCallback()) {
callback.addConsumer(OutputFrame.OutputType.STDOUT, stdoutConsumer)
callback.addConsumer(OutputFrame.OutputType.STDERR, stderrConsumer)
dockerClient.execStartCmd(execCreateCmdResponse.getId()).exec(callback).awaitCompletion()
Thread.sleep(1000)
}
Long exitCode = dockerClient.inspectExecCmd(execCreateCmdResponse.getId()).exec().exitCodeLong
callback.close()
return new DockerExecutionResult(exitCode, stdoutConsumer.toString(Charsets.UTF_8), stderrConsumer.toString(Charsets.UTF_8))
}

Expand Down

0 comments on commit a84a0c9

Please sign in to comment.