Skip to content

Commit 749a9af

Browse files
author
Marcus Linke
committed
Fix pull image test to work with 1.17
1 parent 9cb4273 commit 749a9af

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,9 @@ public void testPullImage() throws DockerException, IOException {
109109
public void testPullNonExistingImage() throws DockerException, IOException {
110110

111111
// does not throw an exception
112-
InputStream is = dockerClient.pullImageCmd("nonexisting/foo").exec();
112+
InputStream is = dockerClient.pullImageCmd("xvxcv/foo").exec();
113113
// stream needs to be fully read in order to close the underlying connection
114-
this.asString(is);
115-
116-
try {
117-
dockerClient.pullImageCmd("non-existing/foo").exec();
118-
fail("expected InternalServerErrorException");
119-
} catch (InternalServerErrorException ignored) {
120-
}
121-
114+
asString(is);
122115
}
123116

124117
}

0 commit comments

Comments
 (0)