mod.rs 403 Bytes
Newer Older
1
pub mod mock_worker;
2
pub mod test_app;
3
4
5
6
7
8
9
10
11
12
13
14
15

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,
    ))
}