Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/unit/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,8 +1270,11 @@ def generate_logs() -> Iterator[bytes]:
assert not streaming_thread.is_alive()
restarted_thread = streamed_log.start()
assert restarted_thread is not streaming_thread
streamed_log.stop()
# The released server ends the stream after its line, so the thread finishes on its own. A `stop` before that
# line arrived would read the whole log, which this test does not serve.
restarted_thread.join(timeout=5)
assert not restarted_thread.is_alive()
streamed_log.stop()


@pytest.mark.usefixtures('propagate_stream_logs')
Expand Down
Loading