Skip to content

Commit

Permalink
node-SDK Fix FAB-2158 pkcs11-tests.js fails
Browse files Browse the repository at this point in the history
The test pkcs11-tests.js was looking for softHSM libraries in
'/usr/lib/libacsp-pkcs11.so' based on process.platform <> 'darwin'.
The libraries are actually in /usr/local/lib/softhsm/libsofthsm2.so.
I added 'linux' to the list of platforms with SoftHSM libraries in
/usr/local/lib/softhsm/libsofthsm2.so.
Edit: fixed comment per Jim Zhang review.

Change-Id: Ie997bb8beca657bd22f0340f8c10ab8e37e0b579
Signed-off-by: jjjjibm <[email protected]>
  • Loading branch information
jjjjibm committed Feb 10, 2017
1 parent 486d98b commit e10d4ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/unit/pkcs11-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var utils = require('fabric-client/lib/utils.js');
var libpath;
switch(process.platform) {
case 'darwin': // OSX
case 'linux': // Ubuntu VM
libpath = '/usr/local/lib/softhsm/libsofthsm2.so';
break;
default:
Expand Down

0 comments on commit e10d4ec

Please sign in to comment.