Skip to content

Commit

Permalink
Improve tests reliability by returning included block (#1724)
Browse files Browse the repository at this point in the history
* Improve tests reliability by returning included block

* retried_blocks

---------

Co-authored-by: Thibault Martinez <[email protected]>
  • Loading branch information
Thoralf-M and thibault-martinez committed Dec 1, 2023
1 parent c72a00f commit 05394f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/tests/client/node_api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05394f8

Please sign in to comment.