Skip to content

Commit 79c9968

Browse files
committed
Dump fixture logs on failure
1 parent f6d2168 commit 79c9968

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: test/fixtures.py

+2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def open(self):
156156
timeout = min(timeout, max(end_at - time.time(), 0))
157157
if self.child.wait_for(r"binding to port", timeout=timeout):
158158
break
159+
self.child.dump_logs()
159160
self.child.stop()
160161
timeout *= 2
161162
time.sleep(backoff)
@@ -305,6 +306,7 @@ def open(self):
305306
if self.child.wait_for(r"\[Kafka Server %d\], Started" %
306307
self.broker_id, timeout=timeout):
307308
break
309+
self.child.dump_logs()
308310
self.child.stop()
309311
timeout *= 2
310312
time.sleep(backoff)

0 commit comments

Comments
 (0)