mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
15 lines
476 B
Rust
15 lines
476 B
Rust
|
|
use aether_runtime::{init_service_runtime, ServiceRuntimeConfig};
|
||
|
|
|
||
|
|
pub fn init_test_runtime() {
|
||
|
|
init_test_runtime_for("aether-testkit");
|
||
|
|
}
|
||
|
|
|
||
|
|
pub fn test_runtime_config(service_name: &'static str) -> ServiceRuntimeConfig {
|
||
|
|
ServiceRuntimeConfig::new(service_name, "aether_testkit=debug")
|
||
|
|
.with_metrics_namespace("aether_testkit")
|
||
|
|
}
|
||
|
|
|
||
|
|
pub fn init_test_runtime_for(service_name: &'static str) {
|
||
|
|
let _ = init_service_runtime(test_runtime_config(service_name));
|
||
|
|
}
|