修正新增配置读取回归测试的 Rust 格式
Project CI / Repository checks (pull_request) Successful in 2m16s
Project CI / Frontend tests (pull_request) Successful in 3m8s
Project CI / Backend tests (pull_request) Successful in 7m2s
Project CI / Native shell tests (pull_request) Successful in 18m27s

- tests/configuration.rs 按 cargo fmt 调整两个 assert! 宏换行
This commit is contained in:
2026-09-10 09:03:19 +00:00
parent 9b5d1fe107
commit 3ebfcc0c2f
@@ -1200,11 +1200,9 @@ fn fallback_template_read_stays_on_snapshot_channel_outside_runtime_dir() {
// 仓库旁边的回退模板是共享输入,读取绝不能走会收紧 owner/DACL 的私有通道。
assert!(!game_creator_config_path_is_runtime_managed(&template));
let content = read_game_creator_config_file(&template).expect("read fallback template");
assert!(
content
.expect("fallback template content")
.contains("fallback-template-model")
);
assert!(content
.expect("fallback template content")
.contains("fallback-template-model"));
fs::remove_dir_all(root).ok();
}
@@ -1222,11 +1220,9 @@ fn runtime_config_read_stays_on_private_channel_inside_runtime_dir() {
assert!(game_creator_config_path_is_runtime_managed(&config_path));
let content = read_game_creator_config_file(&config_path).expect("read runtime config");
assert!(
content
.expect("runtime config content")
.contains("managed-config-model")
);
assert!(content
.expect("runtime config content")
.contains("managed-config-model"));
fs::remove_dir_all(root).ok();
}