mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
fix: 修复测试代码编译错误 - 添加缺失的 asr 字段和 import
This commit is contained in:
@@ -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![],
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
use super::types::{WsConnectionStatus, WsErrorCode};
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user