mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-23 20:01:05 +00:00
Update tests
This commit is contained in:
@@ -838,11 +838,14 @@ mod tests {
|
|||||||
.value(U256::from(100_000_000_000_000u128));
|
.value(U256::from(100_000_000_000_000u128));
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
let receipt = provider.send_transaction(transaction).await;
|
let mut pending_transaction = provider
|
||||||
|
.send_transaction(transaction)
|
||||||
|
.await
|
||||||
|
.expect("Submission failed");
|
||||||
|
pending_transaction.set_timeout(Some(Duration::from_secs(60)));
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
let _ = receipt
|
let _ = pending_transaction
|
||||||
.expect("Failed to send the transfer transaction")
|
|
||||||
.get_receipt()
|
.get_receipt()
|
||||||
.await
|
.await
|
||||||
.expect("Failed to get the receipt for the transfer");
|
.expect("Failed to get the receipt for the transfer");
|
||||||
|
|||||||
@@ -858,6 +858,7 @@ mod tests {
|
|||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[ignore = "Ignored for the time being"]
|
#[ignore = "Ignored for the time being"]
|
||||||
async fn test_transfer_transaction_should_return_receipt() {
|
async fn test_transfer_transaction_should_return_receipt() {
|
||||||
|
// Arrange
|
||||||
let (ctx, node) = new_node().await;
|
let (ctx, node) = new_node().await;
|
||||||
|
|
||||||
let provider = node.provider().await.expect("Failed to create provider");
|
let provider = node.provider().await.expect("Failed to create provider");
|
||||||
@@ -866,9 +867,15 @@ mod tests {
|
|||||||
.to(account_address)
|
.to(account_address)
|
||||||
.value(U256::from(100_000_000_000_000u128));
|
.value(U256::from(100_000_000_000_000u128));
|
||||||
|
|
||||||
let receipt = provider.send_transaction(transaction).await;
|
// Act
|
||||||
let _ = receipt
|
let mut pending_transaction = provider
|
||||||
.expect("Failed to send the transfer transaction")
|
.send_transaction(transaction)
|
||||||
|
.await
|
||||||
|
.expect("Submission failed");
|
||||||
|
pending_transaction.set_timeout(Some(Duration::from_secs(60)));
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
let _ = pending_transaction
|
||||||
.get_receipt()
|
.get_receipt()
|
||||||
.await
|
.await
|
||||||
.expect("Failed to get the receipt for the transfer");
|
.expect("Failed to get the receipt for the transfer");
|
||||||
|
|||||||
Reference in New Issue
Block a user