Skip to content

Commit

Permalink
fixed connect_to_no_get_info test
Browse files Browse the repository at this point in the history
  • Loading branch information
idky137 committed Jul 26, 2024
1 parent 4df186b commit 79d080f
Showing 1 changed file with 20 additions and 31 deletions.
51 changes: 20 additions & 31 deletions integration-tests/tests/integrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,26 @@ use zingoproxy_testutils::{
mod wallet_basic {
use super::*;

// TODO: update not using GrpcConnector(using zingolib::lightclient). removed to simplify dependency tree.
// #[tokio::test]
// async fn connect_to_node_get_info() {
// let online = Arc::new(AtomicBool::new(true));
// let (test_manager, regtest_handler, _proxy_handler) =
// TestManager::launch(online.clone()).await;

// println!(
// "@zingoproxytest: Attempting to connect to GRPC server at URI: {}.",
// test_manager.get_proxy_uri()
// );
// let mut client = GrpcConnector::new(test_manager.get_proxy_uri())
// .get_client()
// .await
// .expect("Failed to create GRPC client");
// let lightd_info = client
// .get_lightd_info(zcash_client_backend::proto::service::Empty {})
// .await
// .expect("Failed to retrieve lightd info from GRPC server");

// println!(
// "@zingoproxytest: Lightd_info response:\n{:#?}.",
// lightd_info.into_inner()
// );
// drop_test_manager(
// Some(test_manager.temp_conf_dir.path().to_path_buf()),
// regtest_handler,
// online,
// )
// .await;
// }
#[tokio::test]
async fn connect_to_node_get_info() {
let online = Arc::new(AtomicBool::new(true));
let (test_manager, regtest_handler, _proxy_handler) =
TestManager::launch(online.clone()).await;
let zingo_client = test_manager.build_lightclient().await;

let lightd_info = zingo_client.do_info().await;
println!(
"@zingoproxytest: Lightd_info response:\n{:#?}.",
lightd_info
);

drop_test_manager(
Some(test_manager.temp_conf_dir.path().to_path_buf()),
regtest_handler,
online,
)
.await;
}

#[tokio::test]
async fn send_to_orchard() {
Expand Down

0 comments on commit 79d080f

Please sign in to comment.