fix: finish View SSE responses after terminal events
This commit is contained in:
1 parent
b2a7f7173a
commit
8c00ae3ea1
4 files changed
+78
-57
No files matched your search
@@ -137,7 +137,15 @@ fn explicit_run_streams_sse_accepted_running_and_terminal_with_verified_trace()
|
||||
.unwrap()
|
||||
.contains("text/event-stream"));
|
||||
assert!(reader.header("Cache-Control").unwrap().contains("no-store"));
|
||||
assert_eq!(
|
||||
reader.header("Transfer-Encoding").as_deref(),
|
||||
Some("chunked")
|
||||
);
|
||||
let frames = collect_until_terminal(&mut reader);
|
||||
assert!(
|
||||
reader.next_frame().is_none(),
|
||||
"terminal frame completes the HTTP response"
|
||||
);
|
||||
assert!(!frames.is_empty());
|
||||
let mut ids = frames
|
||||
.iter()
|
||||
|
||||
Reference in new issue
Block a user