From 32c008e02abafdb762d5b5a7ca8d095455b90dd4 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 23 Mar 2022 07:58:06 -0700 Subject: [PATCH] Ensure farf_dir() exists before it's accessed --- local-cluster/tests/local_cluster.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/local-cluster/tests/local_cluster.rs b/local-cluster/tests/local_cluster.rs index a8e934738..80f60d192 100644 --- a/local-cluster/tests/local_cluster.rs +++ b/local-cluster/tests/local_cluster.rs @@ -2892,6 +2892,7 @@ impl SnapshotValidatorConfig { } // Create the snapshot config + let _ = fs::create_dir_all(farf_dir()); let bank_snapshots_dir = tempfile::tempdir_in(farf_dir()).unwrap(); let snapshot_archives_dir = tempfile::tempdir_in(farf_dir()).unwrap(); let snapshot_config = SnapshotConfig {