Browse Source

tests - active video counters improvements IX

ondratra 3 years ago
parent
commit
5122f56117
2 changed files with 10 additions and 3 deletions
  1. 6 0
      tests/network-tests/run-full-tests.sh
  2. 4 3
      tests/network-tests/start-storage.sh

+ 6 - 0
tests/network-tests/run-full-tests.sh

@@ -23,6 +23,12 @@ yarn workspace api-scripts tsnode-strict src/status.ts | grep Runtime
 
 ./run-test-scenario.sh proposals
 
+# set worker ids (needed after proposals scenario affects hired leads)
+export COLOSSUS_1_WORKER_ID=1
+export COLOSSUS_1_WORKER_URI=//testing//worker//Storage//${COLOSSUS_1_WORKER_ID}
+export DISTRIBUTOR_1_WORKER_ID=1
+export DISTRIBUTOR_1_ACCOUNT_URI=//testing//worker//Distribution//${DISTRIBUTOR_1_WORKER_ID}
+
 # Start storage and distribution services
 REUSE_KEYS=true ./start-storage.sh
 

+ 4 - 3
tests/network-tests/start-storage.sh

@@ -1,9 +1,10 @@
 TMP=$0
 THIS_DIR=`dirname $TMP`
 
-set -a
-. ../../.env
-set +a
+# make sure env variables are loaded before calling this script
+#set -a
+#. ../../.env
+#set +a
 
 HOST_IP=`$THIS_DIR/get-host-ip.sh`
 export COLOSSUS_1_URL="http://${HOST_IP}:3333"