From b24e445ac3879256d42be4330335a50fbdc8243c Mon Sep 17 00:00:00 2001 From: bayk Date: Thu, 19 Sep 2024 21:40:10 -0700 Subject: [PATCH] Test fix --- impls/src/test_framework/testclient.rs | 2 +- libwallet/src/swap/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/impls/src/test_framework/testclient.rs b/impls/src/test_framework/testclient.rs index 7e0e553fe..efbab1fd6 100644 --- a/impls/src/test_framework/testclient.rs +++ b/impls/src/test_framework/testclient.rs @@ -475,7 +475,7 @@ impl LocalWalletClient { impl NodeClient for LocalWalletClient { fn increase_index(&self) {} fn node_url(&self) -> Result { - Err(libwallet::Error::NodeUrlIsEmpty) + Ok("node".to_string()) } fn node_api_secret(&self) -> &Option { &None diff --git a/libwallet/src/swap/mod.rs b/libwallet/src/swap/mod.rs index 86d9896ee..3e8e15ec9 100644 --- a/libwallet/src/swap/mod.rs +++ b/libwallet/src/swap/mod.rs @@ -352,8 +352,8 @@ mod tests { fn increase_index(&self) { unimplemented!() } - fn node_url(&self) -> &str { - "test_node_url" + fn node_url(&self) -> Result { + Ok("node".to_string()) } fn set_node_url(&mut self, _node_url: Vec) { unimplemented!()