Skip to content

Commit e7b81ae

Browse files
committed
minor fix
1 parent e129deb commit e7b81ae

File tree

1 file changed

+2
-1
lines changed
  • imagetool/src/test/java/com/oracle/weblogic/imagetool/integration

1 file changed

+2
-1
lines changed

imagetool/src/test/java/com/oracle/weblogic/imagetool/integration/BaseTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ private static void pullDockerImage(String repoServer, String username, String p
276276
// verify the docker image is pulled
277277
ExecResult result = ExecCommand.exec("docker images | grep " + imagename + " | grep " +
278278
imagetag + "| wc -l");
279-
if(Integer.parseInt(result.stdout().trim()) != 1) {
279+
String resultString = result.stdout();
280+
if(Integer.parseInt(resultString.trim()) != 1) {
280281
throw new Exception("docker image " + imagename + ":" + imagetag + " is not pulled as expected."
281282
+ " Expected 1 image, found " + resultString);
282283
}

0 commit comments

Comments
 (0)