Browse Source

moved export near to where it's needed

ignazio 3 years ago
parent
commit
3679ea36d1
1 changed files with 3 additions and 4 deletions
  1. 3 4
      tests/network-tests/run-migration-tests.sh

+ 3 - 4
tests/network-tests/run-migration-tests.sh

@@ -12,9 +12,6 @@ RUNTIME_TAG=${RUNTIME_TAG:=sumer}
 POST_MIGRATION_ASYNC_ASSERTIONS=${POST_MIGRATION_ASYNC_ASSERTIONS=$true}
 # The joystream/node docker image tag to start the chain with
 RUNTIME_TAG=${RUNTIME_TAG:=sumer}
-# RPC endpoint for live RUNTIME testnet 
-export WS_RPC_ENDPOINT="wss://testnet-rpc-3-uk.joystream.org"
-
 # source common function used for node setup
 source ./node-utils.sh
 source ./.env
@@ -42,7 +39,9 @@ function fork_off_init() {
 
     id=$(docker create joystream/node:${TARGET_RUNTIME_TAG})
     docker cp $id:/joystream/runtime.compact.wasm ${DATA_PATH}/runtime.wasm
-    
+
+    # RPC endpoint for live RUNTIME testnet 
+    export WS_RPC_ENDPOINT="wss://testnet-rpc-3-uk.joystream.org"
     yarn workspace api-scripts tsnode-strict src/fork-off.ts
 }