Skip to content

Commit

Permalink
[FAB-8519] Update test to match updated LSCC error
Browse files Browse the repository at this point in the history
FAB-8481 changed the error message when trying to
instantiate non-existent chaincode.

Change-Id: Idf3b9278725ab035a83045c2e0b5257a6b7e37c0
Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
  • Loading branch information
mastersingh24 committed Feb 25, 2018
1 parent b9de570 commit d044103
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/integration/instantiate.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test('\n\n **** E R R O R T E S T I N G : instantiate call fails with non-exist
txId: ''
};

var error_snip = 'no such file or directory';
var error_snip = 'cannot get package for chaincode';
instantiateChaincodeForError(request, error_snip, t);
});

Expand All @@ -55,7 +55,7 @@ test('\n\n **** E R R O R T E S T I N G : instantiate call fails with non-exist
txId: ''
};

var error_snip = 'no such file or directory';
var error_snip = 'cannot get package for chaincode';
instantiateChaincodeForError(request, error_snip, t);
});

Expand Down
4 changes: 2 additions & 2 deletions test/integration/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ test('\n\n **** E R R O R T E S T I N G on upgrade call', (t) => {
return channel.sendUpgradeProposal(request);

}).then((results) => {
checkResults(results, 'no such file or directory', t);
checkResults(results, 'cannot get package for chaincode', t);

return Promise.resolve(true);

Expand All @@ -157,7 +157,7 @@ test('\n\n **** E R R O R T E S T I N G on upgrade call', (t) => {
return channel.sendUpgradeProposal(request);

}).then((results) => {
checkResults(results, 'no such file or directory', t);
checkResults(results, 'cannot get package for chaincode', t);
t.end();
}).catch((err) => {
t.fail('Got an Error along the way :: '+ err);
Expand Down

0 comments on commit d044103

Please sign in to comment.