2025-07-23 10:07:51 -07:00
|
|
|
pub mod mock_worker;
|
2025-07-30 17:47:19 -07:00
|
|
|
pub mod test_app;
|
2025-08-02 19:16:47 -07:00
|
|
|
|
|
|
|
|
use sglang_router_rs::config::RouterConfig;
|
|
|
|
|
use sglang_router_rs::server::AppContext;
|
|
|
|
|
use std::sync::Arc;
|
|
|
|
|
|
|
|
|
|
/// Helper function to create AppContext for tests
|
|
|
|
|
pub fn create_test_context(config: RouterConfig) -> Arc<AppContext> {
|
|
|
|
|
Arc::new(AppContext::new(
|
|
|
|
|
config.clone(),
|
|
|
|
|
reqwest::Client::new(),
|
|
|
|
|
config.max_concurrent_requests,
|
|
|
|
|
))
|
|
|
|
|
}
|