From 29c7f6ed9aada7d9346a138437f2f4cfe5ea4290 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Thu, 25 Nov 2021 11:41:06 +0300 Subject: [PATCH] 200ms -> 250ms --- ethers-etherscan/src/contract.rs | 6 +++--- ethers-etherscan/src/gas.rs | 6 +++--- ethers-etherscan/src/transaction.rs | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ethers-etherscan/src/contract.rs b/ethers-etherscan/src/contract.rs index 1e3c7a4b..87ea0b03 100644 --- a/ethers-etherscan/src/contract.rs +++ b/ethers-etherscan/src/contract.rs @@ -266,7 +266,7 @@ mod tests { #[serial] #[ignore] async fn can_fetch_contract_abi() { - run_at_least_duration(Duration::from_millis(200), async { + run_at_least_duration(Duration::from_millis(250), async { let client = Client::new_from_env(Chain::Mainnet).unwrap(); let _abi = client @@ -281,7 +281,7 @@ mod tests { #[serial] #[ignore] async fn can_fetch_contract_source_code() { - run_at_least_duration(Duration::from_millis(200), async { + run_at_least_duration(Duration::from_millis(250), async { let client = Client::new_from_env(Chain::Mainnet).unwrap(); let _meta = client @@ -296,7 +296,7 @@ mod tests { #[serial] #[ignore] async fn can_verify_contract() { - run_at_least_duration(Duration::from_millis(200), async { + run_at_least_duration(Duration::from_millis(250), async { // TODO this needs further investigation // https://etherscan.io/address/0x9e744c9115b74834c0f33f4097f40c02a9ac5c33#code diff --git a/ethers-etherscan/src/gas.rs b/ethers-etherscan/src/gas.rs index 7d4ce4d0..bdbbc640 100644 --- a/ethers-etherscan/src/gas.rs +++ b/ethers-etherscan/src/gas.rs @@ -83,7 +83,7 @@ mod tests { #[tokio::test] #[serial] async fn gas_estimate_success() { - run_at_least_duration(Duration::from_millis(200), async { + run_at_least_duration(Duration::from_millis(250), async { let client = Client::new_from_env(Chain::Mainnet).unwrap(); let result = client.gas_estimate(2000000000u32.into()).await; @@ -96,7 +96,7 @@ mod tests { #[tokio::test] #[serial] async fn gas_estimate_error() { - run_at_least_duration(Duration::from_millis(200), async { + run_at_least_duration(Duration::from_millis(250), async { let client = Client::new_from_env(Chain::Mainnet).unwrap(); let err = client.gas_estimate(7123189371829732819379218u128.into()).await.unwrap_err(); @@ -109,7 +109,7 @@ mod tests { #[tokio::test] #[serial] async fn gas_oracle_success() { - run_at_least_duration(Duration::from_millis(200), async { + run_at_least_duration(Duration::from_millis(250), async { let client = Client::new_from_env(Chain::Mainnet).unwrap(); let result = client.gas_oracle().await; diff --git a/ethers-etherscan/src/transaction.rs b/ethers-etherscan/src/transaction.rs index 92df9d10..694aaebd 100644 --- a/ethers-etherscan/src/transaction.rs +++ b/ethers-etherscan/src/transaction.rs @@ -63,7 +63,7 @@ mod tests { #[tokio::test] #[serial] async fn check_contract_execution_status_success() { - run_at_least_duration(Duration::from_millis(200), async { + run_at_least_duration(Duration::from_millis(250), async { let client = Client::new_from_env(Chain::Mainnet).unwrap(); let status = client @@ -80,7 +80,7 @@ mod tests { #[tokio::test] #[serial] async fn check_contract_execution_status_error() { - run_at_least_duration(Duration::from_millis(200), async { + run_at_least_duration(Duration::from_millis(250), async { let client = Client::new_from_env(Chain::Mainnet).unwrap(); let err = client @@ -99,7 +99,7 @@ mod tests { #[tokio::test] #[serial] async fn check_transaction_receipt_status_success() { - run_at_least_duration(Duration::from_millis(200), async { + run_at_least_duration(Duration::from_millis(250), async { let client = Client::new_from_env(Chain::Mainnet).unwrap(); let success = client @@ -116,7 +116,7 @@ mod tests { #[tokio::test] #[serial] async fn check_transaction_receipt_status_failed() { - run_at_least_duration(Duration::from_millis(200), async { + run_at_least_duration(Duration::from_millis(250), async { let client = Client::new_from_env(Chain::Mainnet).unwrap(); let err = client