pub fn init_for_json() -> Result<Child, ()> {
    init_dir(TEST_DIR_PATH.to_string());
    // only deletes file, so directory is created first
    clean_up(BACKEND_JSON, TEST_DIR_PATH.to_string());
    let child = runs_kvsd_silent(BACKEND_JSON, TEST_DIR_PATH.to_string());
    let sleep_time = time::Duration::from_millis(1000);
    thread::sleep(sleep_time);
    return child;
}
// Initialie the kvsd with a JSON backend
Initialie the kvsd with a JSON backend
Initialie the kvsd with a JSON backend
pub fn init_for_json() -> Result<Child, ()> {
    init_dir(TEST_DIR_PATH.to_string());
    // only deletes file, so directory is created first
    clean_up(BACKEND_JSON, TEST_DIR_PATH.to_string());
    let child = runs_kvsd_silent(BACKEND_JSON, TEST_DIR_PATH.to_string());
    let sleep_time = time::Duration::from_millis(1000);
    thread::sleep(sleep_time);
    return child;
}
pub fn init_for_json ( ) -> Result < Child , ( ) > { init_dir ( TEST_DIR_PATH . to_string ( ) ) ; // only deletes file, so directory is created first clean_up ( BACKEND_JSON , TEST_DIR_PATH . to_string ( ) ) ; let child = runs_kvsd_silent ( BACKEND_JSON , TEST_DIR_PATH . to_string ( ) ) ; let sleep_time = time :: Duration :: from_millis ( 1000 ) ; thread :: sleep ( sleep_time ) ; return child ; }
Initialie the kvsd with a JSON backend
Initialie the kvsd with a JSON backend