From 4ab95fc49438d40b6041bc705c0f03b3da37a5d7 Mon Sep 17 00:00:00 2001 From: Konstantin Astakhov Date: Thu, 19 Dec 2024 14:38:17 +0700 Subject: [PATCH] fix governance tests --- .docker/Dockerfile-chain-dev | 2 +- .docker/docker-compose.gov.j2 | 2 +- .github/workflows/governance.yml | 2 +- js-packages/tests/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.docker/Dockerfile-chain-dev b/.docker/Dockerfile-chain-dev index 88cf86a839..55cab562a5 100644 --- a/.docker/Dockerfile-chain-dev +++ b/.docker/Dockerfile-chain-dev @@ -7,4 +7,4 @@ WORKDIR /workdir RUN cargo build --profile integration-tests --features=${NETWORK}-runtime,fast-inflation -CMD cargo run --profile integration-tests --features=${NETWORK}-runtime,fast-inflation -- --dev -linfo --rpc-cors=all --unsafe-rpc-external +CMD WASM_BUILD_TYPE=integration-tests && cargo run --profile integration-tests --features=${NETWORK}-runtime,fast-inflation -- --dev -linfo --rpc-cors=all --unsafe-rpc-external diff --git a/.docker/docker-compose.gov.j2 b/.docker/docker-compose.gov.j2 index f86ae261f2..c9d0fb842d 100644 --- a/.docker/docker-compose.gov.j2 +++ b/.docker/docker-compose.gov.j2 @@ -19,4 +19,4 @@ services: options: max-size: "1m" max-file: "3" - command: cargo run --profile integration-tests --features={{ NETWORK }}-runtime,gov-test-timings,fast-inflation -- --dev -linfo --rpc-cors=all --unsafe-rpc-external + command: WASM_BUILD_TYPE=integration-tests && cargo run --profile integration-tests --features={{ NETWORK }}-runtime,gov-test-timings,fast-inflation -- --dev -linfo --rpc-cors=all --unsafe-rpc-external diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index 7a5bc8add5..d20ff6d09e 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -86,7 +86,7 @@ jobs: yarn add mochawesome ../scripts/wait_for_first_block.sh echo "Ready to start tests" - NOW=$(date +%s) && yarn testGovernance --reporter mochawesome --reporter-options reportFilename=test-${NOW} + NOW=$(date +%s) && yarn testGovernance --reporter mochawesome --reporter-options reportDir=js-packages/tests/mochawesome-report/,reportFilename=test-${NOW} env: RPC_URL: http://127.0.0.1:9944/ diff --git a/js-packages/tests/package.json b/js-packages/tests/package.json index c01f030552..09480b4d34 100644 --- a/js-packages/tests/package.json +++ b/js-packages/tests/package.json @@ -22,7 +22,7 @@ "testParallel": "yarn _testParallel './**/*.test.ts'", "testSequential": "yarn _test './**/*.seqtest.ts'", "testEth": "yarn _test ./**/eth/*.*test.ts", - "testGovernance": "RUN_GOV_TESTS=1 yarn _test ./**/sub/governance/*.*test.ts", + "testGovernance": "RUN_GOV_TESTS=1 && yarn _test ./**/sub/governance/*.*test.ts", "testCollators": "RUN_COLLATOR_TESTS=1 yarn _test ./**/sub/collator-selection/**.*test.ts --timeout 49999999", "testXcmUnique": "RUN_XCM_TESTS=1 yarn _test ./**/xcm/unique.test.ts", "testXcmQuartz": "RUN_XCM_TESTS=1 yarn _test ./**/xcm/quartz.test.ts",