Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use fixed temp_dir for TP on integration tests #1177

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading