git.delta.rocks / unique-network / refs/commits / 88e539da3a4c

difftreelog

use exec

Max Andreev2023-06-11parent: #5948831.patch.diff
in: master

1 file changed

modifiedtests/src/migrations/942057-appPromotion/collectData.tsdiffbeforeafterboth
1import {execSync} from 'child_process';1import {exec, execSync} from 'child_process';
2import path from 'path';2import path from 'path';
3import {dirname} from 'path';3import {dirname} from 'path';
4import {fileURLToPath} from 'url';4import {fileURLToPath} from 'url';
9 const pathToScript = path.resolve(dirName, './stakersParser.jsonnet');9 const pathToScript = path.resolve(dirName, './stakersParser.jsonnet');
10 const outputPath = path.resolve(dirName, './output.json');10 const outputPath = path.resolve(dirName, './output.json');
11 // execSync(`chainql --tla-str=chainUrl=wss://ws-quartz.unique.network:443 ${pathToScript} > ${outputPath}`);11 // execSync(`chainql --tla-str=chainUrl=wss://ws-quartz.unique.network:443 ${pathToScript} > ${outputPath}`);
12 // execSync(`chainql --tla-str=chainUrl=ws://127.0.0.1:9944 ${pathToScript} > ${outputPath}`);
12 execSync(`chainql --tla-str=chainUrl=ws://127.0.0.1:9944 ${pathToScript} > ${outputPath}`);13 exec(`chainql --tla-str=chainUrl=wss://ws-quartz.unique.network:443 ${pathToScript} > ${outputPath}`);
13};14};
1415