Skip to content

Commit

Permalink
Fix regression due to FAB-1787
Browse files Browse the repository at this point in the history
Fixes FAB-1802 getSubmitter() fails after loading a user from COP.
https://jira.hyperledger.org/browse/FAB-1802

Modify getSubmitter() to resolve a user loaded from COP.

Change-Id: If3b14155d0a0a39f36b6ebe63d928ad180dcd91d
Signed-off-by: Tatsushi Inagaki <[email protected]>
  • Loading branch information
inatatsu committed Jan 23, 2017
1 parent bb5dba5 commit ea8eea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function getSubmitter(username, password, client, t, loadFromConfig) {

var member = new User(username, client);
member.setEnrollment(enrollment.key, enrollment.certificate);
return client.setUserContext(member);
return resolve(client.setUserContext(member));
}).catch((err) => {
t.fail('Failed to enroll and persist user. Error: ' + err.stack ? err.stack : err);
t.end();
Expand Down

0 comments on commit ea8eea9

Please sign in to comment.