Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Add test timeout (#6612)

pakrym-oai4ba562d2dd8b
diff --git a/codex-rs/.config/nextest.toml b/codex-rs/.config/nextest.toml
new file mode 100644
index 0000000000..3ca7cfe503
--- /dev/null
+++ b/codex-rs/.config/nextest.toml
@@ -0,0 +1,9 @@
+[profile.default]
+# Do not increase, fix your test instead
+slow-timeout = { period = "15s", terminate-after = 2 }
+
+
+[[profile.default.overrides]]
+# Do not add new tests here
+filter = 'test(rmcp_client) | test(humanlike_typing_1000_chars_appears_live_no_placeholder)'
+slow-timeout = { period = "1m", terminate-after = 4 }
diff --git a/codex-rs/cloud-tasks/src/lib.rs b/codex-rs/cloud-tasks/src/lib.rs
index 7954da5eb9..6fc721404b 100644
--- a/codex-rs/cloud-tasks/src/lib.rs
+++ b/codex-rs/cloud-tasks/src/lib.rs
@@ -1721,6 +1721,7 @@ mod tests {
use ratatui::layout::Rect;
#[test]
+ #[ignore = "very slow"]
fn composer_input_renders_typed_characters() {
let mut composer = ComposerInput::new();
let key = KeyEvent::new(KeyCode::Char('a'), KeyModifiers::NONE);