Skip to content

Commit

Permalink
use fixed temp_dir for TP
Browse files Browse the repository at this point in the history
  • Loading branch information
plebhash committed Oct 2, 2024
1 parent ba4c935 commit 80b9dc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/tests-integration/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 80b9dc4

Please sign in to comment.