test: fix encryption test.

This commit is contained in:
Christopher Jeffrey 2016-10-25 11:55:07 -07:00
parent 6e5bb6eef7
commit 6696045f60
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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