diff --git a/crates/horizon-client/src/benchmark.rs b/crates/horizon-client/src/benchmark.rs index 09989b8c9..483a68848 100644 --- a/crates/horizon-client/src/benchmark.rs +++ b/crates/horizon-client/src/benchmark.rs @@ -145,6 +145,8 @@ fn run(control: &Control, setup: Setup) -> Result { replace_world(&setup.game_dir)?; control.call(&format!("open {WORLD} {SEED} creative"))?; + // The world opens on a worker: its folder may not exist yet when `open` replies. + std::fs::create_dir_all(setup.game_dir.join("saves").join(WORLD)).map_err(|e| e.to_string())?; std::fs::write( setup.game_dir.join("saves").join(WORLD).join(MARKER), "Created by horizon-client --benchmark; replaced by the next run.\n",