Skip to content

Commit

Permalink
Merge pull request #1177 from plebhash/fixed-tp-path-integration-tests
Browse files Browse the repository at this point in the history
use fixed `temp_dir` for TP on integration tests
  • Loading branch information
plebhash authored Oct 3, 2024
2 parents ba4c935 + 9d45b03 commit da77c67
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,10 +66,11 @@ 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 staticdir = format!(".bitcoin-{}", port);
conf.staticdir = Some(temp_dir.join(staticdir));
let port = format!("-sv2port={}", port);
conf.args.extend(vec![
"-txindex=1",
Expand All @@ -80,7 +81,6 @@ impl TemplateProvider {
"-sv2feedelta=1000",
"-loglevel=sv2:trace",
]);
conf.staticdir = Some(temp_dir.join(".bitcoin"));

let os = env::consts::OS;
let arch = env::consts::ARCH;
Expand Down

0 comments on commit da77c67

Please sign in to comment.