git.delta.rocks / unique-network / refs/commits / 8fcfaf37f8d3

difftreelog

Readyness script update.

Alexander Aksenov2022-08-04parent: #0be66a6.patch.diff
in: master

2 files changed

modified.docker/readyness.jsdiffbeforeafterboth
--- a/.docker/readyness.js
+++ b/.docker/readyness.js
@@ -3,7 +3,7 @@
 const main = async () => {
   const wsEndpoint = 'ws://127.0.0.1:9944'
   const api = new ApiPromise({provider: new WsProvider(wsEndpoint)});
-  await api.isReady;
+  await api.isReadyOrError;
 
   const head = (await api.rpc.chain.getHeader()).number.toNumber();
   if(head < 1) throw Error('No block #1');
modified.github/workflows/node_build_test.ymldiffbeforeafterboth
100 env:100 env:
101 RPC_URL: http://127.0.0.1:9933/101 RPC_URL: http://127.0.0.1:9933/
102102
103# - name: Test Report103 - name: Test Report
104# uses: phoenix-actions/test-reporting@v8104 uses: phoenix-actions/test-reporting@v8
105# id: test-report # Set ID reference for step105 id: test-report # Set ID reference for step
106# if: success() || failure() # run this step even if previous step failed106 if: success() || failure() # run this step even if previous step failed
107# with:107 with:
108# name: Tests ${{ matrix.network }} # Name of the check run which will be created108 name: Tests ${{ matrix.network }} # Name of the check run which will be created
109# path: tests/mochawesome-report/test-*.json # Path to test results109 path: tests/mochawesome-report/test-*.json # Path to test results
110# reporter: mochawesome-json110 reporter: mochawesome-json
111# fail-on-error: 'false'111 fail-on-error: 'false'
112112
113# - name: Stop running containers113 - name: Stop running containers
114# if: always() # run this step always114 if: always() # run this step always
115# run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down115 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down
116116