fix: 修复测试代码编译错误 - 添加缺失的 asr 字段和 import

This commit is contained in:
coso
2026-01-31 11:48:18 +08:00
parent 5a81ea2f1b
commit f135398963
4 changed files with 5 additions and 0 deletions
+2
View File
@@ -1228,6 +1228,7 @@ fn arb_credential_pool_config() -> impl Strategy<Value = CredentialPoolConfig> {
gemini_api_keys: vec![],
vertex_api_keys: vec![],
codex: vec![],
asr: vec![],
},
)
}
@@ -2245,6 +2246,7 @@ fn arb_extended_credential_pool_config() -> impl Strategy<Value = CredentialPool
gemini_api_keys,
vertex_api_keys,
codex,
asr: vec![],
}
},
)
+1
View File
@@ -1749,6 +1749,7 @@ mod unit_tests {
gemini_api_keys: vec![],
vertex_api_keys: vec![],
codex: vec![],
asr: vec![],
};
let yaml = serde_yaml::to_string(&pool).unwrap();
@@ -186,6 +186,7 @@ impl SessionService {
#[cfg(test)]
mod tests {
use super::*;
use crate::services::general_chat::MessageRole;
#[test]
fn test_create_session_with_name() {
+1
View File
@@ -2,6 +2,7 @@
#![allow(dead_code)]
use super::types::{WsConnectionStatus, WsErrorCode};
use super::*;
#[test]