chore: handle all cases for EventMsg

This commit is contained in:
Michael Bolin
2025-05-14 13:23:46 -07:00
parent 497c5396c0
commit aa315e8ef4
5 changed files with 36 additions and 10 deletions
+9 -3
View File
@@ -99,7 +99,9 @@ async fn live_streaming_and_prev_id_reset() {
EventMsg::Error(ErrorEvent { message }) => {
panic!("agent reported error in task1: {message}")
}
_ => (),
_ => {
// Ignore other events.
}
}
}
@@ -135,7 +137,9 @@ async fn live_streaming_and_prev_id_reset() {
EventMsg::Error(ErrorEvent { message }) => {
panic!("agent reported error in task2: {message}")
}
_ => (),
_ => {
// Ignore other events.
}
}
}
@@ -201,7 +205,9 @@ async fn live_shell_function_call() {
EventMsg::Error(codex_core::protocol::ErrorEvent { message }) => {
panic!("agent error during shell test: {message}")
}
_ => (),
_ => {
// Ignore other events.
}
}
}
+3 -1
View File
@@ -155,7 +155,9 @@ async fn keeps_previous_response_id_between_tasks() {
EventMsg::Error(ErrorEvent { message }) => {
panic!("unexpected error: {message}")
}
_ => (),
_ => {
// Ignore other events.
}
}
}
}