修正新增配置读取回归测试的 Rust 格式
- tests/configuration.rs 按 cargo fmt 调整两个 assert! 宏换行
This commit is contained in:
@@ -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
|
||||
assert!(content
|
||||
.expect("fallback template content")
|
||||
.contains("fallback-template-model")
|
||||
);
|
||||
.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
|
||||
assert!(content
|
||||
.expect("runtime config content")
|
||||
.contains("managed-config-model")
|
||||
);
|
||||
.contains("managed-config-model"));
|
||||
fs::remove_dir_all(root).ok();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user