fix(zebrad/ci): skip RPC conflict test when network tests are disabled (#3726)

This commit is contained in:
teor 2022-03-04 17:01:41 +10:00 committed by GitHub
parent ba8797e659
commit ac662df179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1817,6 +1817,10 @@ fn zebra_tracing_conflict() -> Result<()> {
fn zebra_rpc_conflict() -> Result<()> { fn zebra_rpc_conflict() -> Result<()> {
zebra_test::init(); zebra_test::init();
if zebra_test::net::zebra_skip_network_tests() {
return Ok(());
}
// [Note on port conflict](#Note on port conflict) // [Note on port conflict](#Note on port conflict)
let port = random_known_port(); let port = random_known_port();
let listen_addr = format!("127.0.0.1:{}", port); let listen_addr = format!("127.0.0.1:{}", port);