Skip to content

Commit

Permalink
update chopsticks (#175)
Browse files Browse the repository at this point in the history
* update chopsticks

* fix
  • Loading branch information
ermalkaleci authored Mar 23, 2024
1 parent 7b67743 commit 7d83ed4
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 191 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
"@polkadot/api": "^10.11.2"
},
"dependencies": {
"@acala-network/chopsticks": "^0.9.9",
"@acala-network/chopsticks-testing": "^0.9.9",
"@acala-network/chopsticks": "^0.9.11-2",
"@acala-network/chopsticks-testing": "^0.9.11-2",
"@acala-network/sdk": "^4.1.9-13",
"@acala-network/sdk-core": "^4.1.9-13",
"@polkadot/api": "^10.11.2",
"@polkawallet/bridge": "^0.1.5-31",
"@swc/core": "^1.4.0",
"@swc/core": "^1.4.8",
"axios": "^1.6.6",
"dotenv": "^16.3.1",
"lodash": "^4.17.21",
"typescript": "^5.3.3",
"unplugin-swc": "^1.4.4",
"vitest": "^1.2.2"
"vitest": "^1.4.0"
},
"devDependencies": {
"@types/lodash": "^4",
Expand Down
4 changes: 0 additions & 4 deletions tests/bridge-sdk/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ export const buildTests = (tests: ReadonlyArray<TestTtype>) => {

await fromchain.chain.newBlock()
await tochain.chain.newBlock()
if (tochain.api.query.messageQueue) {
// messageQueue always delay XCM for one block for no good reason https://github.com/paritytech/polkadot-sdk/issues/3709
await tochain.chain.newBlock()
}

await sleep(100)
const chainBalanceNow = await chainBalance(sdk, fromData, address)
Expand Down
12 changes: 0 additions & 12 deletions tests/xcm-transfer/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ export default function buildTest(tests: ReadonlyArray<TestType>) {
await checkEvents(tx0, 'xcmPallet').redact({ number: precision }).toMatchSnapshot('tx events')

await toChain.chain.newBlock()
if (toChain.api.query.messageQueue) {
// messageQueue always delay XCM for one block for no good reason https://github.com/paritytech/polkadot-sdk/issues/3709
await toChain.chain.newBlock()
}

await check(balance(toChain, toAccount.address))
.redact({ number: precision })
Expand Down Expand Up @@ -154,10 +150,6 @@ export default function buildTest(tests: ReadonlyArray<TestType>) {
await routeChain.chain.newBlock()
}
await toChain.chain.newBlock()
if (toChain.api.query.messageQueue) {
// messageQueue always delay XCM for one block for no good reason https://github.com/paritytech/polkadot-sdk/issues/3709
await toChain.chain.newBlock()
}

await check(toBalance(toChain, toAccount.address))
.redact({ number: precision })
Expand Down Expand Up @@ -192,10 +184,6 @@ export default function buildTest(tests: ReadonlyArray<TestType>) {
await routeChain.chain.newBlock()
}
await toChain.chain.newBlock()
if (toChain.api.query.messageQueue) {
// messageQueue always delay XCM for one block for no good reason https://github.com/paritytech/polkadot-sdk/issues/3709
await toChain.chain.newBlock()
}

await check(toBalance(toChain, toAccount.address))
.redact({ number: precision })
Expand Down
1 change: 1 addition & 0 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
pool: 'forks',
passWithNoTests: true,
retry: process.env.CI ? 3 : 2,
reporters: process.env.GITHUB_ACTIONS ? ['basic', 'github-actions'] : ['basic'],
},
plugins: [swc.vite()],
})
Loading

0 comments on commit 7d83ed4

Please sign in to comment.