Skip RPC tests that require the network when ZEBRA_SKIP_NETWORK_TESTS is set (#4849)
This commit is contained in:
parent
a6f15e84a8
commit
cdd846efdc
|
@ -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
|
||||
|
|
|
@ -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(());
|
||||
|
|
Loading…
Reference in New Issue