From f2fb0f357def3cf79f7acdaae8f3e57e3dd9254c Mon Sep 17 00:00:00 2001 From: Chralt98 Date: Tue, 19 Dec 2023 13:41:37 +0100 Subject: [PATCH] fix log print for chopsticks --- .github/workflows/integration-tests.yml | 14 +++++++------- integration-tests/README.md | 2 +- integration-tests/moonwall.config.json | 2 +- .../chopsticks-xcm/test-chopsticks-xcm-transfer.ts | 2 -- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 6ac5a7619..151e7c9ad 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -206,8 +206,8 @@ jobs: run: | cd integration-tests pnpm exec moonwall test chopsticks_battery_station_upgrade - ls -R integration-tests/tmp/node_logs/ - cat integration-tests/tmp/node_logs/*.log + ls -R tmp/node_logs/ + cat tmp/node_logs/*.log chopsticks_zeitgeist_upgrade: name: Chopsticks Runtime Upgrade Zeitgeist @@ -257,8 +257,8 @@ jobs: run: | cd integration-tests pnpm exec moonwall test chopsticks_zeitgeist_upgrade - ls -R integration-tests/tmp/node_logs/ - cat integration-tests/tmp/node_logs/*.log + ls -R tmp/node_logs/ + cat tmp/node_logs/*.log chopsticks_zeitgeist_hydradx_xcm_tests: name: Chopsticks Zeitgeist HydraDX XCM Tests @@ -296,7 +296,7 @@ jobs: - name: Test zeitgeist xcm tests using Chopsticks run: | cd integration-tests - pnpm exec moonwall test chopsticks_zeitgeist_hydra_xcm_transfer - ls -R integration-tests/tmp/node_logs/ - cat integration-tests/tmp/node_logs/*.log + pnpm exec moonwall test chopsticks_zeitgeist_hydra_xcm_tests + ls -R tmp/node_logs/ + cat tmp/node_logs/*.log diff --git a/integration-tests/README.md b/integration-tests/README.md index 6126a8186..e85b3e271 100644 --- a/integration-tests/README.md +++ b/integration-tests/README.md @@ -37,7 +37,7 @@ Useful for integration testing: - `./integration-tests/scripts/deploy_zombienet.sh` - Deploy a local relay-parachain network for zombienet. - `./integration-tests/scripts/deploy_zombienet.sh --test` - Run ZNDSL zombienet tests on a local relay-parachain network. -- `pnpm exec moonwall test chopsticks_zeitgeist_hydra_xcm_transfer` - Test XCM transfer from Zeitgeist to HydraDX. +- `pnpm exec moonwall test chopsticks_zeitgeist_hydra_xcm_tests` - XCM Tests from Zeitgeist to HydraDX. - `pnpm exec moonwall test zombienet_zeitgeist_upgrade` - Test Zeitgeist runtime upgrade on zombienet for the local network. - `pnpm exec moonwall test chopsticks_zeitgeist_upgrade` - Test Zeitgeist runtime upgrade on chopsticks for the live network. - `pnpm exec moonwall test chopsticks_battery_station_upgrade` - Test Battery Station runtime upgrade on chopsticks for the test network. diff --git a/integration-tests/moonwall.config.json b/integration-tests/moonwall.config.json index 36f3c4a0a..0cfb17782 100644 --- a/integration-tests/moonwall.config.json +++ b/integration-tests/moonwall.config.json @@ -86,7 +86,7 @@ ] }, { - "name": "chopsticks_zeitgeist_hydra_xcm_transfer", + "name": "chopsticks_zeitgeist_hydra_xcm_tests", "testFileDir": ["tests/chopsticks-xcm"], "foundation": { "type": "chopsticks", diff --git a/integration-tests/tests/chopsticks-xcm/test-chopsticks-xcm-transfer.ts b/integration-tests/tests/chopsticks-xcm/test-chopsticks-xcm-transfer.ts index dfb0c7bde..7c3ed0683 100644 --- a/integration-tests/tests/chopsticks-xcm/test-chopsticks-xcm-transfer.ts +++ b/integration-tests/tests/chopsticks-xcm/test-chopsticks-xcm-transfer.ts @@ -2,7 +2,6 @@ import { MoonwallContext, beforeAll, describeSuite, expect } from "@moonwall/cli import { KeyringPair } from "@moonwall/util"; import { ApiPromise, Keyring } from "@polkadot/api"; -const MAX_BALANCE_TRANSFER_TRIES = 5; describeSuite({ id: "CZXCM", title: "Chopsticks Zeitgeist XCM Tests", @@ -39,7 +38,6 @@ describeSuite({ const alice = keyring.addFromUri("//Alice", { name: "Alice default" }); const bob = keyring.addFromUri("//Bob", { name: "Bob default" }); - let tries = 0; const zeitgeistBalanceBefore = (await zeitgeistParaApi.query.system.account(alice.address)).data.free.toBigInt(); const ztg = { 'Ztg': null };