Browse Source

Merge branch 'tests-setup-new-chain' into giza-setup-new-chain-script

Mokhtar Naamani 3 years ago
parent
commit
4d461ce2e3

+ 2 - 0
.github/workflows/network-tests.yml

@@ -18,6 +18,7 @@ jobs:
       run: |
         yarn install --frozen-lockfile
         yarn workspace @joystream/types build
+        yarn workspace @joystream/content-metadata-protobuf build:ts
         yarn workspace network-tests checks --quiet
 
   network_build_osx:
@@ -36,4 +37,5 @@ jobs:
       run: |
         yarn install --frozen-lockfile --network-timeout 120000
         yarn workspace @joystream/types build
+        yarn workspace @joystream/content-metadata-protobuf build:ts
         yarn workspace network-tests checks --quiet

+ 2 - 0
.github/workflows/run-network-tests.yml

@@ -100,6 +100,7 @@ jobs:
         run: |
           yarn install --frozen-lockfile
           yarn workspace @joystream/types build
+          yarn workspace @joystream/content-metadata-protobuf build:ts
       - name: Ensure tests are runnable
         run: yarn workspace network-tests build
       - name: Execute network tests
@@ -126,6 +127,7 @@ jobs:
         run: |
           yarn install --frozen-lockfile
           yarn workspace @joystream/types build
+          yarn workspace @joystream/content-metadata-protobuf build:ts
       - name: Ensure tests are runnable
         run: yarn workspace network-tests build
       - name: Execute network tests

+ 2 - 2
tests/network-tests/src/Api.ts

@@ -1771,7 +1771,7 @@ export class Api {
     const tx = this.api.tx.content.createChannel(
       { Member: memberId },
       {
-        assets: [],
+        assets: null,
         meta: null,
         reward_account: null,
       }
@@ -1800,7 +1800,7 @@ export class Api {
 
     // Create a video without any assets
     const tx = this.api.tx.content.createVideo({ Member: memberId }, channelId, {
-      assets: [],
+      assets: null,
       meta: null,
     })