Skip to content

Commit

Permalink
Fix indexing bug in installChaincode e2e test
Browse files Browse the repository at this point in the history
A minor bug fix

Change-Id: I60a4dd2fa269b6b17a51fe4b45c614ee3acd1010
Signed-off-by: thakkarparth007 <thakkarparth007@gmail.com>
  • Loading branch information
thakkarparth007 committed May 22, 2017
1 parent 8f148f3 commit 2717d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/e2e/e2eUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ function installChaincode(org, chaincode_path, version, t) {
var errors = [];
for(var i in proposalResponses) {
let one_good = false;
if (proposalResponses && proposalResponses[0].response && proposalResponses[0].response.status === 200) {
if (proposalResponses && proposalResponses[i].response && proposalResponses[i].response.status === 200) {
one_good = true;
logger.info('install proposal was good');
} else {
logger.error('install proposal was bad');
errors.push(proposalResponses[0]);
errors.push(proposalResponses[i]);
}
all_good = all_good & one_good;
}
Expand Down

0 comments on commit 2717d9b

Please sign in to comment.