[][src]Function safe_app::utils::test_utils::random_client

pub fn random_client<Run, I, T, E>(r: Run) -> T where
    E: Debug,
    I: IntoFuture<Item = T, Error = E> + 'static,
    Run: FnOnce(&CoreClient) -> I + Send + 'static,
    T: Send + 'static, 

Create random registered client and run it inside an event loop. Use this to create a CoreClient automatically and randomly.