diff --git a/zebrad/tests/acceptance.rs b/zebrad/tests/acceptance.rs index 6721fd47e..41bde2edb 100644 --- a/zebrad/tests/acceptance.rs +++ b/zebrad/tests/acceptance.rs @@ -1379,7 +1379,6 @@ fn zebra_state_conflict() -> Result<()> { let mut dir_conflict_full = PathBuf::new(); dir_conflict_full.push(dir_conflict.path()); dir_conflict_full.push("state"); - dir_conflict_full.push("state"); dir_conflict_full.push(format!( "v{}", zebra_state::constants::DATABASE_FORMAT_VERSION diff --git a/zebrad/tests/common/launch.rs b/zebrad/tests/common/launch.rs index 8b4973bec..7112b4286 100644 --- a/zebrad/tests/common/launch.rs +++ b/zebrad/tests/common/launch.rs @@ -5,7 +5,11 @@ //! Test functions in this file will not be run. //! This file is only for test library code. -use std::{env, path::Path, time::Duration}; +use std::{ + env, + path::{Path, PathBuf}, + time::Duration, +}; use color_eyre::eyre::Result; @@ -142,7 +146,7 @@ where fn cache_config_update_helper(self, config: &mut ZebradConfig) -> Result { if !config.state.ephemeral { let dir = self.as_ref(); - let cache_dir = dir.join("state"); + let cache_dir = PathBuf::from(dir); config.state.cache_dir = cache_dir; }