Skip RPC tests that require the network when ZEBRA_SKIP_NETWORK_TESTS is set (#4849)

This commit is contained in:
teor 2022-08-01 16:21:08 +10:00 committed by GitHub
parent a6f15e84a8
commit cdd846efdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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(());