Adding Identity close test
This commit is contained in:
parent
f7c1e3d4ab
commit
afb6574217
2 changed files with 32 additions and 1 deletions
|
|
@ -461,6 +461,7 @@ Identity.prototype._cleanUp = function() {
|
|||
* @desc Closes the wallet and disconnects all services
|
||||
*/
|
||||
Identity.prototype.close = function(cb) {
|
||||
console.log('close!!!!!');
|
||||
var self = this;
|
||||
|
||||
function doClose() {
|
||||
|
|
@ -507,7 +508,7 @@ Identity.prototype.importWalletFromObj = function(obj, opts, cb) {
|
|||
log.debug('Updating Indexes for wallet:' + w.getName());
|
||||
w.updateIndexes(function(err) {
|
||||
log.debug('Adding wallet to profile:' + w.getName());
|
||||
self.storeWallet(w, function (err) {
|
||||
self.storeWallet(w, function(err) {
|
||||
if (err) return cb(err);
|
||||
|
||||
self.addWallet(w);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue