// Initialize the kvsd with a file backend
Initialize the kvsd with a file backend
Initialize the kvsd with a file backend
pub fn init_for_file() -> Result<Child, ()> {
    // deletes directory, clean up is called before creating directory
    clean_up(BACKEND_FILE, TEST_DIR_PATH.to_string());
    init_dir(TEST_DIR_PATH.to_string());
    let child = runs_kvsd_silent(BACKEND_FILE, TEST_DIR_PATH.to_string());
    let sleep_time = time::Duration::from_millis(1000);
    thread::sleep(sleep_time);
    return child;
}
pub fn init_for_file ( ) -> Result < Child , ( ) > { // deletes directory, clean up is called before creating directory clean_up ( BACKEND_FILE , TEST_DIR_PATH . to_string ( ) ) ; init_dir ( TEST_DIR_PATH . to_string ( ) ) ; let child = runs_kvsd_silent ( BACKEND_FILE , TEST_DIR_PATH . to_string ( ) ) ; let sleep_time = time :: Duration :: from_millis ( 1000 ) ; thread :: sleep ( sleep_time ) ; return child ; }
Initialize the kvsd with a file backend
Initialize the kvsd with a file backend