Skip to content

Commit 31662d5

Browse files
author
Marcus Linke
committed
Fix PushImageCmdTest
1 parent 6ddaab2 commit 31662d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/github/dockerjava/client/command/PushImageCmdTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ public void testPushLatest() throws Exception {
6666
logResponseStream(dockerClient.pushImageCmd(username + "/busybox").exec());
6767

6868
dockerClient.removeImageCmd(imageId).exec();
69+
70+
String response = asString(dockerClient.pullImageCmd(username + "/busybox").exec());
6971

70-
// TODO This can fail intermittently if run with other tests.
71-
assertThat(asString(dockerClient.pullImageCmd(username + "/busybox").exec()), not(containsString("404")));
72+
assertThat(response, not(containsString("HTTP code: 404")));
7273

7374
tmpImgs.add(username + "/busybox");
7475
}

0 commit comments

Comments
 (0)