Skip to content

Commit 493e441

Browse files
kemi04Kestutis Gudynas
andauthored
Fix test network (#291)
Signed-off-by: Kestutis Gudynas <[email protected]> Co-authored-by: Kestutis Gudynas <[email protected]>
1 parent c7dc308 commit 493e441

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

test/fv/utils.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ const path = require('path');
1313
const ip = require('ip');
1414
const execSync = require('child_process').execSync;
1515

16-
const org1CA = '/etc/hyperledger/config/crypto-config/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem';
17-
const org2CA = '/etc/hyperledger/config/crypto-config/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem';
1816
const ordererCA = '/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem';
19-
const tls = process.env.TLS && process.env.TLS.toLowerCase() === 'true' ? true : false;
2017
const dir = path.join(__dirname, '..', '..', 'fabric-samples');
2118
const registerAndEnroll = () => {
2219
const cmd = `export PATH=${dir}/bin:$PATH && export FABRIC_CFG_PATH=${dir}/config/ && ` +
@@ -31,11 +28,7 @@ const registerAndEnroll = () => {
3128
execSync(cmd);
3229
};
3330
const getTLSArgs = () => {
34-
if (tls) {
35-
return `--tls true --cafile ${dir}` + ordererCA;
36-
}
37-
38-
return '';
31+
return `--tls true --cafile ${dir}` + ordererCA;
3932
};
4033

4134
// Increase the timeouts on zLinux!

tools/toolchain/utils.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ const tls = process.env.TLS && process.env.TLS.toLowerCase() === 'true' ? true :
1010
exports.tls = tls;
1111

1212
exports.getTLSArgs = () => {
13-
if (tls) {
14-
return `--tls true --cafile ${dir}` + ordererCA;
15-
}
16-
17-
return '';
13+
return `--tls true --cafile ${dir}` + ordererCA;
1814
};
1915

2016
exports.getPeerAddresses = () => {

0 commit comments

Comments
 (0)