diff --git a/Makefile b/Makefile index b1650c5..b7cae57 100644 --- a/Makefile +++ b/Makefile @@ -23,11 +23,11 @@ release-check: reconnect-check: cargo test --test integration_smoke resume_updates_udp_endpoint_for_roaming -- --nocapture - DOSH_SOAK_SECONDS=$${DOSH_SOAK_SECONDS:-300} cargo test --test integration_smoke sleep_roaming_soak_30m -- --ignored --nocapture + DOSH_SOAK_SECONDS=$${DOSH_SOAK_SECONDS:-1800} cargo test --test integration_smoke sleep_roaming_soak_30m -- --ignored --nocapture hostile-network-check: cargo test --test hostile_network -- --nocapture - DOSH_BADNET_SOAK_SECONDS=$${DOSH_BADNET_SOAK_SECONDS:-300} cargo test --test hostile_network bad_network_tui_work_soak_30m -- --ignored --nocapture + DOSH_BADNET_SOAK_SECONDS=$${DOSH_BADNET_SOAK_SECONDS:-1800} cargo test --test hostile_network bad_network_tui_work_soak_30m -- --ignored --nocapture persistence-check: cargo test --test integration_smoke session_survives_server_restart_same_shell_and_screen -- --nocapture diff --git a/tests/release_scripts.rs b/tests/release_scripts.rs index 9f1d3e1..9eda2e8 100644 --- a/tests/release_scripts.rs +++ b/tests/release_scripts.rs @@ -63,6 +63,26 @@ fn release_gates_test_all_targets() { assert!(ci.contains("run: sh scripts/tui-harness.sh")); } +#[test] +fn one_dot_zero_gates_default_to_full_length_soaks() { + let makefile = include_str!("../Makefile"); + let reconnect_check = makefile + .split("reconnect-check:") + .nth(1) + .and_then(|tail| tail.split("\nhostile-network-check:").next()) + .expect("reconnect-check target"); + assert!(reconnect_check.contains("DOSH_SOAK_SECONDS=$${DOSH_SOAK_SECONDS:-1800}")); + assert!(!reconnect_check.contains("DOSH_SOAK_SECONDS=$${DOSH_SOAK_SECONDS:-300}")); + + let hostile_check = makefile + .split("hostile-network-check:") + .nth(1) + .and_then(|tail| tail.split("\npersistence-check:").next()) + .expect("hostile-network-check target"); + assert!(hostile_check.contains("DOSH_BADNET_SOAK_SECONDS=$${DOSH_BADNET_SOAK_SECONDS:-1800}")); + assert!(!hostile_check.contains("DOSH_BADNET_SOAK_SECONDS=$${DOSH_BADNET_SOAK_SECONDS:-300}")); +} + #[test] fn installers_skip_stale_latest_release_prebuilts() { let install = include_str!("../install.sh");