Skip to content

Commit

Permalink
Make info::basic test faster (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Sep 29, 2022
1 parent b54586a commit a4fd75c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
7 changes: 3 additions & 4 deletions tests/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ use super::*;

#[test]
fn basic() {
let state = SlowTest::new().command("index").output();

SlowTest::with_state(state)
.command("info")
let rpc_server = test_bitcoincore_rpc::spawn();
CommandBuilder::new("info")
.rpc_server(&rpc_server)
.stdout_regex(
r"
blocks indexed: 1
Expand Down
7 changes: 0 additions & 7 deletions tests/slow_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ impl SlowTest {
}
}

pub(crate) fn stdout_regex(self, expected_stdout: impl AsRef<str>) -> Self {
Self {
expected_stdout: Expected::regex(expected_stdout.as_ref()),
..self
}
}

pub(crate) fn run(self) {
self.output();
}
Expand Down

0 comments on commit a4fd75c

Please sign in to comment.