Skip to content

Commit b3a1e51

Browse files
committed
Avoid infinite loop in test
1 parent 2b463f2 commit b3a1e51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/test_editable.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ def test_editable_by_host():
3838
container = app.start_container()
3939

4040
# give the container a chance to start
41+
waiting_container_counter = 0
4142
while container.status != "running":
43+
if waiting_container_counter >= 60:
44+
assert status == "running"
45+
waiting_container_counter = waiting_container_counter + 1
4246
time.sleep(1)
4347

4448
try:

0 commit comments

Comments
 (0)