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* () {