diff --git a/testing-framework/core/src/nodes/executor.rs b/testing-framework/core/src/nodes/executor.rs index 1088626..08d7b28 100644 --- a/testing-framework/core/src/nodes/executor.rs +++ b/testing-framework/core/src/nodes/executor.rs @@ -146,6 +146,9 @@ impl Executor { let config_path = dir.path().join("executor.yaml"); let file = std::fs::File::create(&config_path).unwrap(); + // Ensure recovery directory exists so services that persist state do not fail. + let _ = std::fs::create_dir_all(dir.path().join("recovery")); + if !*IS_DEBUG_TRACING { if let Ok(env_dir) = std::env::var("NOMOS_LOG_DIR") { let log_dir = PathBuf::from(env_dir); diff --git a/testing-framework/core/src/nodes/validator.rs b/testing-framework/core/src/nodes/validator.rs index 14d571f..f7264e3 100644 --- a/testing-framework/core/src/nodes/validator.rs +++ b/testing-framework/core/src/nodes/validator.rs @@ -173,6 +173,9 @@ impl Validator { let config_path = dir.path().join("validator.yaml"); let file = std::fs::File::create(&config_path).unwrap(); + // Ensure recovery directory exists so services that persist state do not fail. + let _ = std::fs::create_dir_all(dir.path().join("recovery")); + if !*IS_DEBUG_TRACING { if let Ok(env_dir) = std::env::var("NOMOS_LOG_DIR") { let log_dir = PathBuf::from(env_dir);