From 6696045f604d1ea98ac03c8740076ba49bc449af Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 25 Oct 2016 11:55:07 -0700 Subject: [PATCH] test: fix encryption test. --- test/wallet-test.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/wallet-test.js b/test/wallet-test.js index db86e57c..24a508c1 100644 --- a/test/wallet-test.js +++ b/test/wallet-test.js @@ -925,16 +925,11 @@ describe('Wallet', function() { it('should create two accounts multiple encryption', cob(function* () { var w = yield walletdb.create({ id: 'foobar', passphrase: 'foo' }); - w.destroy(); + yield w.destroy(); var w = yield walletdb.get('foobar'); - var account = yield w.createAccount({ name: 'foo1' }); + var account = yield w.createAccount({ name: 'foo1' }, 'foo'); assert(account); yield w.lock(); - account = yield w.createAccount({ name: 'foo2' }, 'foo'); - assert(account); - yield w.lock(); - account = yield w.createAccount({ name: 'foo3' }, 'foo'); - assert(account); })); it('should fill tx with inputs when encrypted', cob(function* () {