Skip to content

Commit

Permalink
enable threads (#144)
Browse files Browse the repository at this point in the history
* enable threads

* increase timeout

* update statemine endpoint

* update
  • Loading branch information
ermalkaleci authored Nov 23, 2023
1 parent 287d800 commit ed5e439
Show file tree
Hide file tree
Showing 10 changed files with 200 additions and 217 deletions.
4 changes: 2 additions & 2 deletions networks/statemint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Config } from './types'
export default {
polkadot: {
name: 'statemint' as const,
endpoint: 'wss://statemint-rpc.polkadot.io',
endpoint: 'wss://statemint-rpc.dwellir.com',
},
kusama: {
name: 'statemine' as const,
endpoint: 'wss://statemine-rpc.polkadot.io',
endpoint: 'wss://statemine-rpc.dwellir.com',
},
config: ({ alice }) => ({
storages: {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
"@polkadot/api": "^10.11.1"
},
"dependencies": {
"@acala-network/chopsticks": "^0.9.3-1",
"@acala-network/chopsticks-testing": "^0.9.3-1",
"@acala-network/chopsticks": "^0.9.3-2",
"@acala-network/chopsticks-testing": "^0.9.3-2",
"@acala-network/sdk": "^4.1.9-10",
"@acala-network/sdk-core": "^4.1.9-10",
"@polkadot/api": "^10.11.1",
"@polkawallet/bridge": "^0.1.5-19",
"dotenv": "^16.3.1",
"lodash": "^4.17.21",
"typescript": "^5.3.2",
"vitest": "^0.34.6"
"vitest": "^1.0.0-beta.5"
},
"devDependencies": {
"@types/lodash": "^4",
Expand Down
1 change: 0 additions & 1 deletion scripts/configs/statemine.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
extensions:
client:
endpoints:
- wss://statemine-rpc.polkadot.io:443
- wss://statemine-rpc.dwellir.com:443
event_bus:
substrate_api:
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/statemint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extensions:
client:
endpoints:
- wss://statemint-rpc.polkadot.io
- wss://statemint-rpc.dwellir.com
event_bus:
substrate_api:
stale_timeout_seconds: 60
Expand Down
2 changes: 1 addition & 1 deletion tests/xcm-transfer/__snapshots__/kusama-para.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ exports[`'statemine' -> 'karura' xcm transfer 'USDT' > xcmPallet transfer > from
},
},
{
"setTopic": "redacted",
"setTopic": "(redacted)",
},
],
},
Expand Down
3 changes: 0 additions & 3 deletions tests/xcm-transfer/__snapshots__/polkadot-para.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1109,9 +1109,6 @@ exports[`'statemint' -> 'acala' xcm transfer 'WBTC' > xcmPallet transfer > from
},
},
},
{
"setTopic": "redacted",
},
],
},
],
Expand Down
4 changes: 1 addition & 3 deletions tests/xcm-transfer/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ export default function buildTest(tests: ReadonlyArray<TestType>) {
await checkUmp(fromChain).toMatchSnapshot('from chain ump messages')
} else {
await checkHrmp(fromChain)
.map((v) => JSON.parse(JSON.stringify(v)))
// redact setTopic
.map((v) => _.update(v, '[0].data[1].v3[4].setTopic', () => 'redacted'))
.redact({ redactKeys: /setTopic/ })
.toMatchSnapshot('from chain hrmp messages')
}

Expand Down
11 changes: 11 additions & 0 deletions vitest.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'vitest/config'

const minutes = (n: number) => n * 60 * 1000

export default defineConfig({
test: {
hookTimeout: process.env.CI ? minutes(2) : minutes(3),
testTimeout: process.env.CI ? minutes(5) : minutes(10),
pool: 'forks',
},
})
10 changes: 0 additions & 10 deletions vitest.config.ts

This file was deleted.

Loading

0 comments on commit ed5e439

Please sign in to comment.