test: align Profile consumers with explicit default
This commit is contained in:
@@ -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}`"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user