Эх сурвалжийг харах

path to runtime parameterized

Gleb Urvanov 4 жил өмнө
parent
commit
c4a253fcb5

+ 3 - 1
tests/network-tests/.env

@@ -17,4 +17,6 @@ SPENDING_BALANCE = 1000
 # Minting capacity for content working group minting capacity test.
 MINTING_CAPACITY = 100020
 # Stake amount for Rome runtime upgrade proposal
-RUNTIME_UPGRADE_PROPOSAL_STAKE = 100000
+RUNTIME_UPGRADE_PROPOSAL_STAKE = 100000
+# Constantinople runtime path
+RUNTIME_WASM_PATH = ../../target/release/wbuild/joystream-node-runtime/joystream_node_runtime.compact.wasm

+ 2 - 1
tests/network-tests/src/tests/rome/romeRuntimeUpgradeTest.ts

@@ -15,6 +15,7 @@ describe('Runtime upgrade integration tests', () => {
   const nodeUrl: string = process.env.NODE_URL!;
   const sudoUri: string = process.env.SUDO_ACCOUNT_URI!;
   const proposalStake: BN = new BN(+process.env.RUNTIME_UPGRADE_PROPOSAL_STAKE!);
+  const runtimePath: string = process.env.RUNTIME_WASM_PATH!;
   const defaultTimeout: number = 180000;
 
   const m1KeyPairs: KeyringPair[] = new Array();
@@ -38,7 +39,7 @@ describe('Runtime upgrade integration tests', () => {
   it('Upgrading the runtime test', async () => {
     // Setup
     sudo = keyring.addFromUri(sudoUri);
-    const runtime: string = Utils.readRuntimeFromFile('joystream_node_runtime.wasm');
+    const runtime: string = Utils.readRuntimeFromFile(runtimePath);
     const description: string = 'runtime upgrade proposal which is used for API integration testing';
     const runtimeProposalFee: BN = apiWrapper.estimateRomeProposeRuntimeUpgradeFee(
       proposalStake,