connections
This commit is contained in:
@@ -46,6 +46,7 @@ def test_dashboard_chat_uses_streaming_fetch():
|
||||
assert "stream: true" in html
|
||||
assert ".body.getReader()" in html
|
||||
assert 'data === "[DONE]"' in html
|
||||
assert 'console.error("chat stream failed", err)' in html
|
||||
|
||||
|
||||
def test_dashboard_served_by_follower():
|
||||
|
||||
@@ -467,6 +467,7 @@ def test_tracker_logs_stream_progress_before_request_completes():
|
||||
method="POST",
|
||||
)
|
||||
response = urllib.request.urlopen(req, timeout=3.0)
|
||||
assert response.headers["X-Accel-Buffering"] == "no"
|
||||
first_line = response.readline()
|
||||
assert first_line.startswith(b"data:")
|
||||
assert chunk_sent.wait(timeout=1.0)
|
||||
|
||||
Reference in New Issue
Block a user