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
4 changes: 3 additions & 1 deletion api/tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ def test_streams_tokens_then_eos(client):
break
ws.__exit__(None, None, None)

reply = "".join(frames[:-1])
assert frames[-1] == "<EOS>"
assert "".join(frames[:-1]).strip()
assert reply.strip()
assert "ERROR:" not in reply, reply # an engine failure arrives as an ERROR message, not as a reply


def test_disconnect_mid_stream_stops_generation_and_frees_the_model(client, engine, monkeypatch):
Expand Down
Loading