codex: shrink tui test blob on PR #16274

This commit is contained in:
Eric Traut
2026-03-31 00:12:38 -06:00
parent e765f835bc
commit 8f9b44d2eb

View File

@@ -1366,7 +1366,7 @@ async fn user_turn_includes_personality_from_config() {
}
#[tokio::test]
async fn user_turn_preserves_none_personality() {
async fn user_turn_keeps_none() {
let (mut chat, _rx, mut op_rx) = make_chatwidget_manual(Some("gpt-5.2-codex")).await;
chat.set_feature_enabled(Feature::Personality, /*enabled*/ true);
chat.thread_id = Some(ThreadId::new());
@@ -1378,7 +1378,7 @@ async fn user_turn_preserves_none_personality() {
chat.handle_key_event(KeyEvent::from(KeyCode::Enter));
match next_submit_op(&mut op_rx) {
Op::UserTurn { personality, .. } if personality == Some(Personality::none()) => {}
other => panic!("expected none personality, got {other:?}"),
other => panic!("got {other:?}"),
}
}