From fdba8e78640e2909b96318c8c0a8291181abe0a8 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 1 Mar 2023 22:50:44 +0000 Subject: [PATCH] test all_connections with Nones --- web3_proxy/src/rpcs/many.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web3_proxy/src/rpcs/many.rs b/web3_proxy/src/rpcs/many.rs index 3425d64a..12aef3e8 100644 --- a/web3_proxy/src/rpcs/many.rs +++ b/web3_proxy/src/rpcs/many.rs @@ -1822,6 +1822,18 @@ mod tests { debug!("all_connections: {:#?}", all_connections); + assert_eq!( + all_connections.unwrap().len(), + 2, + "wrong number of connections" + ); + + let all_connections = rpcs + .all_connections(&authorization, None, None, None, false) + .await; + + debug!("all_connections: {:#?}", all_connections); + assert_eq!( all_connections.unwrap().len(), 2,