fn lock_server() {
    let mutex = SERVER_MUTEX.get_or_init(|| Mutex::new(()));
    let _guard = mutex.lock().expect("Could not lock server.");
    std::thread::sleep(std::time::Duration::from_millis(500));
}
/// Tests using the local server can not run concurrently.
Tests using the local server can not run concurrently.
Tests using the local server can not run concurrently .
fn lock_server() {
    let mutex = SERVER_MUTEX.get_or_init(|| Mutex::new(()));
    let _guard = mutex.lock().expect("Could not lock server.");
    std::thread::sleep(std::time::Duration::from_millis(500));
}
fn lock_server ( ) { let mutex = SERVER_MUTEX . get_or_init ( | | Mutex :: new ( ( ) ) ) ; let _guard = mutex . lock ( ) . expect ( " " ) ; std :: thread :: sleep ( std :: time :: Duration :: from_millis ( 500 ) ) ; }
Tests using the local server can not run concurrently.
Tests using the local server can not run concurrently .