Skip to content

Commit

Permalink
Use --chain regtest to speed up unit tests (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Sep 19, 2022
1 parent 86e5883 commit 0619b47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ mod tests {
--data-dir {}
--cookie-file {}
--height-limit 0
--chain regtest
",
bitcoin_rpc_server.port,
tempdir.path().display(),
Expand All @@ -578,6 +579,7 @@ mod tests {
--data-dir {}
--cookie-file {}
--height-limit 1
--chain regtest
",
bitcoin_rpc_server.port,
tempdir.path().display(),
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ mod tests {
.port();

let (options, server) = parse_server_args(&format!(
"ord --rpc-url http://127.0.0.1:{} --cookie-file {} --data-dir {} server --http-port {}",
"ord --chain regtest --rpc-url http://127.0.0.1:{} --cookie-file {} --data-dir {} server --http-port {}",
bitcoin_rpc_server_handle.port,
cookiefile.to_str().unwrap(),
tempdir.path().to_str().unwrap(),
Expand Down

0 comments on commit 0619b47

Please sign in to comment.