mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-10 19:29:50 +08:00
fix(provider): factor model fetch route test type alias
This commit is contained in:
@@ -1313,6 +1313,9 @@ mod tests {
|
|||||||
use crate::fetch_models_from_transports;
|
use crate::fetch_models_from_transports;
|
||||||
use crate::transport::ModelFetchTransportRuntime;
|
use crate::transport::ModelFetchTransportRuntime;
|
||||||
|
|
||||||
|
type RouteResult = Result<(u16, Value), String>;
|
||||||
|
type ModelFetchRoute = (String, RouteResult);
|
||||||
|
|
||||||
struct TestRuntime {
|
struct TestRuntime {
|
||||||
executed_urls: Arc<Mutex<Vec<String>>>,
|
executed_urls: Arc<Mutex<Vec<String>>>,
|
||||||
response_body: Value,
|
response_body: Value,
|
||||||
@@ -1321,7 +1324,7 @@ mod tests {
|
|||||||
|
|
||||||
struct RoutingTestRuntime {
|
struct RoutingTestRuntime {
|
||||||
executed_urls: Arc<Mutex<Vec<String>>>,
|
executed_urls: Arc<Mutex<Vec<String>>>,
|
||||||
routes: Vec<(String, Result<(u16, Value), String>)>,
|
routes: Vec<ModelFetchRoute>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
|
|||||||
Reference in New Issue
Block a user