Skip to content

Commit

Permalink
Skip RPC tests that require the network when ZEBRA_SKIP_NETWORK_TESTS…
Browse files Browse the repository at this point in the history
… is set (#4849)
  • Loading branch information
teor2345 authored Aug 1, 2022
1 parent a6f15e8 commit cdd846e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zebrad/tests/acceptance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,10 @@ async fn lightwalletd_test_suite() -> Result<()> {
fn lightwalletd_integration_test(test_type: LightwalletdTestType) -> Result<()> {
zebra_test::init();

if zebra_test::net::zebra_skip_network_tests() {
return Ok(());
}

// Skip the test unless the user specifically asked for it
//
// TODO: pass test_type to zebra_skip_lightwalletd_tests() and check for lightwalletd launch in there
Expand Down
4 changes: 4 additions & 0 deletions zebrad/tests/common/lightwalletd/send_transaction_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ use crate::common::{
pub async fn run() -> Result<()> {
zebra_test::init();

if zebra_test::net::zebra_skip_network_tests() {
return Ok(());
}

// Skip the test unless the user specifically asked for it
if zebra_skip_lightwalletd_tests() {
return Ok(());
Expand Down

0 comments on commit cdd846e

Please sign in to comment.