Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Use extended timeout instead of ignoring source_flag test (#308)
Maximilian Roosee0e50b38bc3
diff --git a/.config/nextest.toml b/.config/nextest.tomlindex 9d7e17dad..030db8e5e 100644--- a/.config/nextest.toml+++ b/.config/nextest.toml@@ -23,3 +23,9 @@ slow-timeout = { period = "60s", terminate-after = 1 }[[profile.default.overrides]]filter = 'test(/integration_tests::ci_status::test_list_full/)'threads-required = 4++# The source_flag test runs `cargo run` inside a PTY, which can take longer than+# 60s when cargo needs to check/compile dependencies on slow CI runners.+[[profile.default.overrides]]+filter = 'test(/test_source_flag_forwards_errors/)'+slow-timeout = { period = "180s", terminate-after = 1 }diff --git a/tests/integration_tests/shell_wrapper.rs b/tests/integration_tests/shell_wrapper.rsindex d0404d223..514fff42c 100644--- a/tests/integration_tests/shell_wrapper.rs+++ b/tests/integration_tests/shell_wrapper.rs@@ -1505,14 +1505,13 @@ approved-commands = ["echo 'fish background task'"]// when using the --source flag (instead of being hidden with generic// wrapper error messages like "Error: cargo build failed").- // This test runs `cargo run` inside a PTY which can exceed the 60s nextest- // timeout when cargo needs to check/compile dependencies. Run with --ignored:- // cargo test --test integration test_source_flag -- --ignored+ // This test runs `cargo run` inside a PTY which can take longer than the+ // default 60s timeout when cargo checks/compiles dependencies. Extended+ // timeout configured in .config/nextest.toml.#[rstest]#[case("bash")]#[case("zsh")]#[case("fish")]- #[ignore = "cargo run inside PTY can timeout - run with --ignored"]fn test_source_flag_forwards_errors(#[case] shell: &str, repo: TestRepo) {use std::env;