дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
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.
Цей коміт міститься в:
1 джерело
6c2ae13387
коміт
2066055077
1 file changed
+4
-2
@@ -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]
|
||||
|
||||
Reference in new issue
Заблокувати користувача