git.delta.rocks / unique-network / refs/commits / 042e4c64ac0c

difftreelog

correct and enable tests/scripts/readyness.js for xcm tests workflow

Konstantin Astakhov2022-09-06parent: #24fe71f.patch.diff
in: master

2 files changed

modified.github/workflows/xcm-tests_v2.ymldiffbeforeafterboth
--- a/.github/workflows/xcm-tests_v2.yml
+++ b/.github/workflows/xcm-tests_v2.yml
@@ -146,7 +146,7 @@
         run: |
           yarn install
           yarn add mochawesome
-          # node scripts/readyness.js
+          node scripts/readyness.js
           echo "Ready to start tests"
           NOW=$(date +%s) && yarn ${{ matrix.runtest }} --reporter mochawesome --reporter-options reportFilename=test-${NOW}
 
modifiedtests/scripts/readyness.jsdiffbeforeafterboth
6 await api.isReadyOrError;6 await api.isReadyOrError;
77
8 const head = (await api.rpc.chain.getHeader()).number.toNumber();8 const head = (await api.rpc.chain.getHeader()).number.toNumber();
9 await api.disconnect();
9 if(head < 1) throw Error('No block #1');10 if(head < 1) throw Error('No block #1');
1011
11 await api.disconnect();
12}12}
1313
14const sleep = time => {14const sleep = time => {