Skip to content

Commit 3bc63a6

Browse files
author
Marcus Linke
committed
Fix BuildImage test
1 parent 0837a15 commit 3bc63a6

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/com/github/dockerjava/api/command/CreateContainerCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public interface CreateContainerCmd extends DockerCmd<CreateContainerResponse>{
100100
* @throws NotFoundException No such container
101101
* @throws ConflictException Named container already exists
102102
*/
103-
@Override
103+
@Override
104104
public CreateContainerResponse exec() throws NotFoundException,
105105
ConflictException;
106106

src/test/java/com/github/dockerjava/core/command/BuildImageCmdImplTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ public void testNginxDockerfileBuilder() {
5757
File baseDir = new File(Thread.currentThread().getContextClassLoader()
5858
.getResource("nginx").getFile());
5959

60-
61-
InputStream response = dockerClient.buildImageCmd(baseDir).exec();
60+
InputStream response = dockerClient.buildImageCmd(baseDir).withNoCache().exec();
6261

6362
String fullLog = asString(response);
6463
assertThat(fullLog, containsString("Successfully built"));

0 commit comments

Comments
 (0)