Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added retry function #19

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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