Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Aug 9, 2024
1 parent bb9c2a0 commit da4da17
Show file tree
Hide file tree
Showing 4 changed files with 437 additions and 542 deletions.
7 changes: 3 additions & 4 deletions tests/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
"license": "MIT",
"type": "module",
"scripts": {
"test": "LOG_LEVEL=error vitest --silent --no-color",
"test": "vitest",
"test:runtime-upgrade-shibuya": "RUNTIME=shibuya yarn test tests/runtime-upgrade.test.ts",
"test:runtime-upgrade-shiden": "RUNTIME=shiden yarn test tests/runtime-upgrade.test.ts",
"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
12 changes: 8 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,20 @@ 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], timeout: 300_000 });
const { api, dev, teardown } = await setupContext({
endpoint: endpoints[runtime],
runtimeLogLevel: 5,
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 da4da17

Please sign in to comment.