mirror of
https://github.com/openai/codex.git
synced 2026-02-01 22:47:52 +00:00
Fix test helper to avoid unwrap
This commit is contained in:
@@ -488,7 +488,10 @@ mod tests {
|
||||
|
||||
let mut events = Vec::new();
|
||||
while let Some(ev) = stream.next().await {
|
||||
events.push(ev.unwrap());
|
||||
match ev {
|
||||
Ok(ev) => events.push(ev),
|
||||
Err(err) => panic!("stream error: {err}"),
|
||||
}
|
||||
}
|
||||
events
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user