Skip to content

Commit 6d26c54

Browse files
End code snippet with EOL
1 parent 4203448 commit 6d26c54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jjava-distro/src/test/java/org/dflib/jjava/distro/ContainerizedKernelCase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ protected static Container.ExecResult executeInKernel(String snippet) throws IOE
6262
}
6363

6464
protected static Container.ExecResult executeInKernel(String snippet, Map<String, String> env) throws IOException, InterruptedException {
65-
String snippet64 = Base64.getEncoder().encodeToString(snippet.getBytes());
65+
String snippetEOL = snippet + "\n";
66+
String snippet64 = Base64.getEncoder().encodeToString(snippetEOL.getBytes());
6667
String jupyterCommand = venvCommand("jupyter console --kernel=java --simple-prompt --no-confirm-exit -y");
6768
String[] containerCommand = new String[]{"bash", "-c", "echo \"" + snippet64 + "\" | base64 -d | " + jupyterCommand};
6869
Container.ExecResult execResult = container.execInContainer(ExecConfig.builder()

0 commit comments

Comments
 (0)