From 20660550779dd3e22548ebd36655ec683b1eedc0 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Thu, 19 Nov 2026 20:13:12 +0800 Subject: [PATCH] test(maven): check that turning Always update snapshots off drops -U on a stored config Maven settings are applied to the stored configuration at each launch; the test re-applied them to the already-applied one and expected -U to go away, which broke main's Rust checks. --- crates/ide-sdk/src/tests.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ide-sdk/src/tests.rs b/crates/ide-sdk/src/tests.rs index 7bfe85a507..a0f9524060 100644 --- a/crates/ide-sdk/src/tests.rs +++ b/crates/ide-sdk/src/tests.rs @@ -902,9 +902,11 @@ fn always_update_snapshots_adds_dash_u_once() { apply_to_run_configs(&mut own, tmp.path(), &s); assert_eq!(own[0].args, ["--update-snapshots", "package"]); + // Settings apply to the stored configuration at each launch, so turning it off drops -U. s.languages.java.maven.update_snapshots = false; - apply_to_run_configs(&mut configs, tmp.path(), &s); - assert_eq!(configs[0].args, ["package"]); + let mut stored = vec![run("maven", "./mvnw", &["package"])]; + apply_to_run_configs(&mut stored, tmp.path(), &s); + assert_eq!(stored[0].args, ["package"]); } #[test]