Skip to content

Commit

Permalink
increase timeout for upgrade test (#1324)
Browse files Browse the repository at this point in the history
* increase timeout for upgrade test

* updates

* updates
  • Loading branch information
ermalkaleci authored Aug 12, 2024
1 parent a642a44 commit f1802f0
Show file tree
Hide file tree
Showing 4 changed files with 432 additions and 541 deletions.
5 changes: 2 additions & 3 deletions tests/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
"test:runtime-upgrade-astar": "RUNTIME=astar yarn test tests/runtime-upgrade.test.ts"
},
"dependencies": {
"@acala-network/chopsticks-testing": "^0.12.2",
"@polkadot/util-crypto": "^12.6.2",
"@acala-network/chopsticks-testing": "^0.13.2",
"typescript": "^5.3.0",
"vitest": "^1.4.0"
"vitest": "^2.0"
},
"prettier": {
"tabWidth": 2,
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/tests/runtime-upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import { readFileSync } from 'node:fs';
import path from 'node:path';

const endpoints = {
shibuya: 'wss://shibuya-rpc.dwellir.com',
shiden: 'wss://shiden.api.onfinality.io/public-ws',
astar: 'wss://astar.api.onfinality.io/public-ws',
shibuya: 'wss://rpc.shibuya.astar.network',
shiden: 'wss://rpc.shiden.astar.network',
astar: 'wss://rpc.astar.network',
};

describe('runtime upgrade', async () => {
const { alice } = testingPairs();

const runtime = process.env.RUNTIME || 'shibuya';
const { api, dev, teardown } = await setupContext({ endpoint: endpoints[runtime] });
const { api, dev, teardown } = await setupContext({ endpoint: endpoints[runtime], timeout: 300_000 });

beforeAll(async () => {
await dev.setStorage({
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
hookTimeout: 30000,
testTimeout: 180000,
testTimeout: 300_000,
}
})
Loading

0 comments on commit f1802f0

Please sign in to comment.