Skip to content

Commit

Permalink
Added retry function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jineshdarjee committed Oct 26, 2023
1 parent 55732ee commit 73925f0
Show file tree
Hide file tree
Showing 19 changed files with 20,500 additions and 19,696 deletions.
182 changes: 178 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"test-mainnet-swap-optimism": "mocha --timeout 600000 --spec test/specs/mainnet/03_Swap/Optimism.spec.js --reporter mochawesome --reporter-options charts=true,code=false",
"test-mainnet-swap-xdai": "mocha --timeout 600000 --spec test/specs/mainnet/03_Swap/Xdai.spec.js --reporter mochawesome --reporter-options charts=true,code=false",
"test-mainnet-swap": "mocha --timeout 600000 --spec test/specs/mainnet/03_Swap/*.spec.js --reporter mochawesome --reporter-options charts=true,code=false",
"test_arka": "mocha --timeout 600000 --spec test/specs/mainnet-api/arka/mumbai.spec.js",
"test_skandha": "mocha --timeout 600000 --spec test/specs/mainnet-api/skandha/mumbai.spec.js"
"test_arka": "mocha --timeout 600000 --spec test/specs/mainnet-api/arka/*.spec.js",
"test_skandha": "mocha --timeout 600000 --spec test/specs/mainnet-api/skandha/*.spec.js"
},
"author": "",
"license": "ISC",
Expand Down
3 changes: 2 additions & 1 deletion test/data/api_testData.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"arka_pimlico": "https://arka.etherspot.io/pimlicoAddress",
"address": "0x684E10D67dc4159B813Db70a1DAeB5FcC98bd034",
"entryPointAddress": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"usdc_token": "USDC"
"usdc_token": "USDC",
"blockCount": 15
}
4 changes: 2 additions & 2 deletions test/data/testData.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"invalid_matic_chainid": 19,
"invalid_optimism_chainid": 158,
"invalid_xdai_chainid": 105,
"minimum_token_balance": 0.0001,
"minimum_native_balance": 0.0001
"minimum_token_balance": 0.00001,
"minimum_native_balance": 0.00001
}
8 changes: 4 additions & 4 deletions test/specs/mainnet-api/arka/mumbai.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Performance testing of Arka Endpoints with Mumbai Network', () => {
}
});

it('SMOKE: Validate the Whitelist endpoint of Arka on Mumbai Network', async () => {
it.only('SMOKE: Validate the Whitelist endpoint of Arka on Mumbai Network', async () => {
const addresses = [data.address];
const startTime = performance.now();

Expand Down Expand Up @@ -125,7 +125,7 @@ describe('Performance testing of Arka Endpoints with Mumbai Network', () => {
});

it('SMOKE: Validate the Pimlico Paymaster endpoint of Arka on Mumbai Network', async () => {
const context = { token: data.usdc_token };
// const context = { token: data.usdc_token };
const startTime = performance.now();

try {
Expand All @@ -137,8 +137,8 @@ describe('Performance testing of Arka Endpoints with Mumbai Network', () => {
},
body: JSON.stringify({
params: [
entryPointAddress,
context,
data.entryPointAddress,
{ token: 'USDC' },
data.mumbai_chainid_testnet,
process.env.API_KEY,
],
Expand Down
Loading

0 comments on commit 73925f0

Please sign in to comment.