test: fix encryption test.
This commit is contained in:
parent
6e5bb6eef7
commit
6696045f60
@ -925,16 +925,11 @@ describe('Wallet', function() {
|
|||||||
|
|
||||||
it('should create two accounts multiple encryption', cob(function* () {
|
it('should create two accounts multiple encryption', cob(function* () {
|
||||||
var w = yield walletdb.create({ id: 'foobar', passphrase: 'foo' });
|
var w = yield walletdb.create({ id: 'foobar', passphrase: 'foo' });
|
||||||
w.destroy();
|
yield w.destroy();
|
||||||
var w = yield walletdb.get('foobar');
|
var w = yield walletdb.get('foobar');
|
||||||
var account = yield w.createAccount({ name: 'foo1' });
|
var account = yield w.createAccount({ name: 'foo1' }, 'foo');
|
||||||
assert(account);
|
assert(account);
|
||||||
yield w.lock();
|
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* () {
|
it('should fill tx with inputs when encrypted', cob(function* () {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user