Skip to content

Commit aaf1bc5

Browse files
authored
Dont raise RuntimeError for dead process in SpawnedService.wait_for() (#2461)
1 parent b8912f7 commit aaf1bc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def wait_for(self, pattern, timeout=30):
113113
start = time.time()
114114
while True:
115115
if not self.is_alive():
116-
raise RuntimeError("Child thread died already.")
116+
log.error("Child thread died already.")
117+
return False
117118

118119
elapsed = time.time() - start
119120
if elapsed >= timeout:

0 commit comments

Comments
 (0)