test: align Profile consumers with explicit default

This commit is contained in:
2026-08-30 00:37:52 +09:00
parent 16c0fc704d
commit 22867faa9c
3 changed files with 28 additions and 13 deletions
+7 -1
View File
@@ -3740,7 +3740,13 @@ fn builtin_profile_source_archive(
profile: &ProfileSelector,
) -> Result<ProfileSourceArchive, String> {
let selected_profile = match profile {
ProfileSelector::Builtin(name) => name.clone(),
ProfileSelector::Builtin(name) => {
if name.starts_with("builtin:") {
name.clone()
} else {
format!("builtin:{name}")
}
}
ProfileSelector::Named(name) => {
return Err(format!(
"embedded runtime does not provide named Profile `{name}`"
+6 -1
View File
@@ -18155,7 +18155,12 @@ mod tests {
},
)
.unwrap();
assert_eq!(existing.state, WorkerOperationState::Accepted);
assert_eq!(
existing.state,
WorkerOperationState::Accepted,
"diagnostics: {:?}",
existing.diagnostics
);
let worker_id = existing.worker.unwrap().worker.worker_id;
let worker = api
.runtime