From 80b9dc4493ab9a3954fb32fc34cb7514d6ea1c86 Mon Sep 17 00:00:00 2001 From: plebhash Date: Wed, 2 Oct 2024 12:20:54 -0300 Subject: [PATCH] use fixed temp_dir for TP --- roles/tests-integration/tests/common/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/tests-integration/tests/common/mod.rs b/roles/tests-integration/tests/common/mod.rs index 5d37b39d5..0e344ee23 100644 --- a/roles/tests-integration/tests/common/mod.rs +++ b/roles/tests-integration/tests/common/mod.rs @@ -66,8 +66,7 @@ pub struct TemplateProvider { impl TemplateProvider { pub fn start(port: u16) -> Self { - let path_name = format!("/tmp/.template-provider-{}", port); - let temp_dir = PathBuf::from(&path_name); + let temp_dir = PathBuf::from("/tmp/.template-provider"); let mut conf = Conf::default(); let port = format!("-sv2port={}", port); @@ -80,7 +79,8 @@ impl TemplateProvider { "-sv2feedelta=1000", "-loglevel=sv2:trace", ]); - conf.staticdir = Some(temp_dir.join(".bitcoin")); + let staticdir = format!(".bitcoin-{}", port); + conf.staticdir = Some(temp_dir.join(staticdir)); let os = env::consts::OS; let arch = env::consts::ARCH;