mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-18 19:20:07 +08:00
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:
@@ -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}"),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user