Skip to content

Commit

Permalink
moved do_list_txsummaries_assert to test_features
Browse files Browse the repository at this point in the history
  • Loading branch information
fluidvanadium committed Dec 25, 2023
1 parent 1de92fe commit 8fc7437
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions zingolib/src/lightclient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -732,12 +732,6 @@ impl LightClient {
self.list_tx_summaries().await.0
}

pub async fn do_list_txsummaries_assert(&self) -> Vec<ValueTransfer> {
let lts = self.list_tx_summaries().await;
assert_eq!(lts.1.len(), 0);
lts.0
}

pub async fn list_tx_summaries(&self) -> (Vec<ValueTransfer>, Vec<ZingoLibError>) {
let mut summaries: Vec<ValueTransfer> = Vec::new();
let mut errors: Vec<ZingoLibError> = Vec::new();
Expand Down
5 changes: 5 additions & 0 deletions zingolib/src/lightclient/test_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ impl LightClient {
.await
.map_err(ZingoLibError::CantReadWallet)
}
pub async fn do_list_txsummaries_assert(&self) -> Vec<ValueTransfer> {
let lts = self.list_tx_summaries().await;
assert_eq!(lts.1.len(), 0);
lts.0
}
}

0 comments on commit 8fc7437

Please sign in to comment.