tests: tweak provider tests timeouts
This commit is contained in:
parent
fb1b156216
commit
bc4a96ba7a
@ -1,7 +1,7 @@
|
||||
import {
|
||||
AlchemyProvider,
|
||||
AnkrProvider,
|
||||
CloudflareProvider,
|
||||
// CloudflareProvider,
|
||||
EtherscanProvider,
|
||||
InfuraProvider,
|
||||
// PocketProvider,
|
||||
@ -37,6 +37,7 @@ const ProviderCreators: Array<ProviderCreator> = [
|
||||
return new AnkrProvider(network);
|
||||
}
|
||||
},
|
||||
/*
|
||||
{
|
||||
name: "CloudflareProvider",
|
||||
networks: [ "default", "mainnet" ],
|
||||
@ -44,6 +45,7 @@ const ProviderCreators: Array<ProviderCreator> = [
|
||||
return new CloudflareProvider(network);
|
||||
}
|
||||
},
|
||||
*/
|
||||
{
|
||||
name: "EtherscanProvider",
|
||||
networks: ethNetworks,
|
||||
|
@ -227,12 +227,16 @@ describe("Test Typed Contract Interaction", function() {
|
||||
const value = valueFunc(type);
|
||||
|
||||
it(`tests typed value: Typed.from(${ type })`, async function() {
|
||||
this.timeout(10000);
|
||||
|
||||
const v = Typed.from(type, value);
|
||||
const result = await contract.testTyped(v);
|
||||
assert.equal(result, type);
|
||||
});
|
||||
|
||||
it(`tests typed value: Typed.${ type }()`, async function() {
|
||||
this.timeout(10000);
|
||||
|
||||
const v = (<any>Typed)[type](value);
|
||||
const result = await contract.testTyped(v);
|
||||
assert.equal(result, type);
|
||||
|
@ -47,7 +47,7 @@ describe("Sends Transactions", function() {
|
||||
});
|
||||
break;
|
||||
} catch (error) {
|
||||
if (isError(error, "REPLACEMENT_UNDERPRICED")) {
|
||||
if (isError(error, "REPLACEMENT_UNDERPRICED") || isError(error, "NONCE_EXPIRED")) {
|
||||
await stall(1000);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user