diff --git a/zebra-test/src/command.rs b/zebra-test/src/command.rs index f70b2fcb..e48bc993 100644 --- a/zebra-test/src/command.rs +++ b/zebra-test/src/command.rs @@ -86,7 +86,7 @@ impl CommandExt for Command { dir, deadline: None, stdout: None, - bypass_test_stdout: false, + bypass_test_capture: false, }) } } @@ -153,7 +153,7 @@ pub struct TestChild { pub child: Child, pub stdout: Option>>, pub deadline: Option, - bypass_test_stdout: bool, + bypass_test_capture: bool, } impl TestChild { @@ -194,8 +194,8 @@ impl TestChild { /// Configures testrunner to forward stdout to the true stdout rather than /// fakestdout used by cargo tests. - pub fn bypass_test_stdout(mut self, cond: bool) -> Self { - self.bypass_test_stdout = cond; + pub fn bypass_test_capture(mut self, cond: bool) -> Self { + self.bypass_test_capture = cond; self } @@ -230,7 +230,7 @@ impl TestChild { // since we're about to discard this line write it to stdout so our // test runner can capture it and display if the test fails, may // cause weird reordering for stdout / stderr - if !self.bypass_test_stdout { + if !self.bypass_test_capture { println!("{}", line); } else { use std::io::Write; diff --git a/zebrad/tests/acceptance.rs b/zebrad/tests/acceptance.rs index 5c7772c5..aec8e9f0 100644 --- a/zebrad/tests/acceptance.rs +++ b/zebrad/tests/acceptance.rs @@ -672,7 +672,7 @@ fn create_cached_database_height(network: Network, height: Height) -> Result<()> let mut child = dir .spawn_child(&["start"])? .with_timeout(timeout) - .bypass_test_stdout(true); + .bypass_test_capture(true); let network = format!("network: {},", network); child.expect_stdout(&network)?;