Skip to content

Commit 4f37857

Browse files
committed
Merge pull request docker-java#499 from KostyaSha/issue492
Fix typo in test
2 parents c0b9e4b + 5b6fb63 commit 4f37857

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/test/java/com/github/dockerjava/client/DockerClientTest.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,26 @@ public void afterMethod(ITestResult result) {
5050
@Test
5151
public void testRunShlex() throws DockerException {
5252

53-
String[] commands = new String[] {"true",
53+
String[] commands = new String[] {
54+
"true",
5455
"echo \"The Young Descendant of Tepes & Septette for the Dead Princess\"",
5556
"echo -n 'The Young Descendant of Tepes & Septette for the Dead Princess'",
5657
"/bin/sh -c echo Hello World", "/bin/sh -c echo 'Hello World'", "echo 'Night of Nights'",
57-
"true && echo 'Night of Nights'"};
58+
"true && echo 'Night of Nights'"
59+
};
5860

5961
for (String command : commands) {
6062
LOG.info("Running command: [{}]", command);
6163

62-
CreateContainerResponse container = dockerClient.createContainerCmd("busybox").withCmd(commands).exec();
64+
CreateContainerResponse container = dockerClient.createContainerCmd("busybox")
65+
.withCmd(command)
66+
.exec();
6367
dockerClient.startContainerCmd(container.getId());
6468

65-
int exitcode = dockerClient.waitContainerCmd(container.getId()).exec(new WaitContainerResultCallback())
69+
int exitcode = dockerClient.waitContainerCmd(container.getId())
70+
.exec(new WaitContainerResultCallback())
6671
.awaitStatusCode();
72+
6773
assertThat(exitcode, equalTo(0));
6874
}
6975
}

0 commit comments

Comments
 (0)