From 05394f891461ab0bd1185f7e745b6c1507a73071 Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Fri, 1 Dec 2023 16:21:28 +0100 Subject: [PATCH] Improve tests reliability by returning included block (#1724) * Improve tests reliability by returning included block * retried_blocks --------- Co-authored-by: Thibault Martinez --- sdk/tests/client/node_api/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/tests/client/node_api/mod.rs b/sdk/tests/client/node_api/mod.rs index 4870ec67dc..f475f0e227 100644 --- a/sdk/tests/client/node_api/mod.rs +++ b/sdk/tests/client/node_api/mod.rs @@ -96,9 +96,9 @@ pub async fn setup_transaction_block(client: &Client) -> (BlockId, TransactionId _ => unreachable!(), }; - let _ = client.retry_until_included(&block.id(), None, None).await.unwrap(); + let retried_blocks = client.retry_until_included(&block.id(), None, None).await.unwrap(); - (block_id, transaction_id) + (retried_blocks[0].0, transaction_id) } // helper function to get the output id for the first alias output