Skip to content

Commit 4f67a65

Browse files
Rahul-Sutariyacastler
authored andcommitted
Test fix: Added return self at the end of DockerProcess.__enter__ method.
Problem: When a process finishes very quickly (before the "is running" check), the method returned None instead of the process object, causing AttributeError: 'NoneType' object has no attribute 'wait_for_exit'.
1 parent b6aab0f commit 4f67a65

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • quality/integration_testing/environments/ubuntu24_04_docker

quality/integration_testing/environments/ubuntu24_04_docker/docker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def stream_output():
7676
if exec_info['Running']:
7777
return self
7878
time.sleep(0.05)
79+
80+
return self
7981

8082
def wait_for_exit(self, timeout: int = 60) -> int:
8183
if self._exec_id:

0 commit comments

Comments
 (0)