Skip to content

Commit

Permalink
Add new config to new tests from the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Sep 5, 2022
1 parent f78dbfc commit 46d9fc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zebra-rpc/src/server/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ fn rpc_server_spawn(parallel_cpu_threads: bool) {
let config = Config {
listen_addr: Some(SocketAddrV4::new(Ipv4Addr::LOCALHOST, port).into()),
parallel_cpu_threads: if parallel_cpu_threads { 2 } else { 1 },
debug_force_finished_sync: false,
};

let rt = tokio::runtime::Runtime::new().unwrap();
Expand Down Expand Up @@ -102,6 +103,7 @@ fn rpc_server_spawn_unallocated_port(parallel_cpu_threads: bool) {
let config = Config {
listen_addr: Some(SocketAddrV4::new(Ipv4Addr::LOCALHOST, port).into()),
parallel_cpu_threads: if parallel_cpu_threads { 0 } else { 1 },
debug_force_finished_sync: false,
};

let rt = tokio::runtime::Runtime::new().unwrap();
Expand Down Expand Up @@ -151,6 +153,7 @@ fn rpc_server_spawn_port_conflict() {
let config = Config {
listen_addr: Some(SocketAddrV4::new(Ipv4Addr::LOCALHOST, port).into()),
parallel_cpu_threads: 1,
debug_force_finished_sync: false,
};

let rt = tokio::runtime::Runtime::new().unwrap();
Expand Down Expand Up @@ -242,6 +245,7 @@ fn rpc_server_spawn_port_conflict_parallel_auto() {
let config = Config {
listen_addr: Some(SocketAddrV4::new(Ipv4Addr::LOCALHOST, port).into()),
parallel_cpu_threads: 2,
debug_force_finished_sync: false,
};

let rt = tokio::runtime::Runtime::new().unwrap();
Expand Down

0 comments on commit 46d9fc0

Please sign in to comment.