Skip to content

Commit 60aa7ea

Browse files
committed
refactor(run-e2e): add break statement
1 parent 653b940 commit 60aa7ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

automation/run-e2e/lib/docker-utils.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ export async function startRuntime(mxruntimeImage, mendixVersion, ip, freePort)
127127
let runtimeContainerId = "";
128128
for (let attempts = 100; attempts > 0; --attempts) {
129129
runtimeContainerId = getContainerId(containerLabel);
130+
if (runtimeContainerId) {
131+
break;
132+
}
130133
}
131134

132135
if (runtimeContainerId === "") {

0 commit comments

Comments
 (0)