Skip to content

Commit

Permalink
[FAB-4145] intermittent e2e failure in fabric verify
Browse files Browse the repository at this point in the history
Adding diagnostic logging and renaming the chaincode to a more
unique name to avoid running conflicts with other end2end tests
in the CI environments.

Change-Id: I7bf432f84e695ce95a0d6caace464cc5d76be9f9
Signed-off-by: Jim Zhang <jzhang@us.ibm.com>
  • Loading branch information
jimthematrix committed May 24, 2017
1 parent e62a56f commit bfdb8e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions test/integration/e2e/e2eUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,16 @@ function instantiateChaincode(userOrg, chaincode_path, version, upgrade, t){
let request = buildChaincodeProposal(client, the_user, chaincode_path, version, upgrade, badTransientMap);
tx_id = request.txId;

t.comment(util.format(
'Upgrading chaincode "%s" at path "%s" to version "%s" by passing args "%s" to method "%s" in transaction "%s"',
request.chaincodeId,
request.chaincodePath,
request.chaincodeVersion,
request.args,
request.fcn,
request.txId
));

return channel.sendUpgradeProposal(request)
.then((results) => {
let proposalResponses = results[0];
Expand Down
2 changes: 1 addition & 1 deletion test/unit/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports.CHAINCODE_UPGRADE_PATH = 'github.com/example_cc1';
module.exports.CHAINCODE_MARBLES_PATH = 'github.com/marbles_cc';
module.exports.END2END = {
channel: 'mychannel',
chaincodeId: 'end2end',
chaincodeId: 'end2endnodesdk',
chaincodeVersion: 'v0'
};

Expand Down

0 comments on commit bfdb8e5

Please sign in to comment.