Skip to content

Commit

Permalink
[FAB-6599] fix node-sdk gulp error
Browse files Browse the repository at this point in the history
This fixed #FAB-6599
Add 'image not found' as accepted error.
Test has been gone through on Mac machine.

Change-Id: Ieb8cc4d22d7edfeb9ea9c8e04fd7d40d4005b7d1
Signed-off-by: davidliu <[email protected]>
  • Loading branch information
davidkhala committed Mar 2, 2018
1 parent 3ddcfdf commit 03cfcd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/cryptosuite-pkcs11.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ test('\n\n** bccsp_pkcs11 tests **\n\n', (t) => {
// after that check, so that parameter that is being tested is valid
let checkError = function(error, msg) {
let error_msg = error.toString();
if(error_msg.indexOf('no suitable image found') > -1 || error_msg.indexOf('No such file or directory') > -1) {
if(error_msg.indexOf('no suitable image found') > -1 || error_msg.indexOf('No such file or directory') > -1
||error_msg.includes('image not found')) {
t.pass(msg);
} else {
t.fail(msg + ' failed with ::' + error_msg);
Expand Down

0 comments on commit 03cfcd1

Please sign in to comment.