fix(test): use preferred_filename after OMO field rename

The merge from main brought in #1746 which renamed
OmoVariant.filename → preferred_filename, but the test helper
omo_config_path() was not updated, breaking compilation of all
new provider tests.
This commit is contained in:
Jason
2026-04-01 21:12:17 +08:00
parent 544e9bf937
commit 52f0ff3961
+2 -2
View File
@@ -185,8 +185,8 @@ mod tests {
fn omo_config_path(home: &Path, category: &str) -> PathBuf {
home.join(".config").join("opencode").join(match category {
"omo" => crate::services::omo::STANDARD.filename,
"omo-slim" => crate::services::omo::SLIM.filename,
"omo" => crate::services::omo::STANDARD.preferred_filename,
"omo-slim" => crate::services::omo::SLIM.preferred_filename,
other => panic!("unexpected OMO category in test: {other}"),
})
}