()
| 1 | use std::{mem::MaybeUninit, sync::OnceLock, time::Duration}; |
| 2 | |
| 3 | pub fn config() -> &'static TestConfig { |
| 4 | static TESTCONFIG: OnceLock<TestConfig> = OnceLock::new(); |
| 5 | TESTCONFIG.get_or_init(TestConfig::from_env) |
| 6 | } |
| 7 | |
| 8 | // The `wasi` crate version 0.9.0 and beyond, doesn't |
| 9 | // seem to define these constants, so we do it ourselves. |