fix walletlock tests
This commit is contained in:
parent
8bc1eb15e4
commit
1ab7a4f8e8
7 changed files with 122 additions and 176 deletions
|
|
@ -87,6 +87,7 @@ describe('Wallet model', function() {
|
|||
});
|
||||
|
||||
var storage = new Storage(walletConfig.storage);
|
||||
storage.setPassphrase('xxx');
|
||||
var network = new Network(walletConfig.network);
|
||||
var blockchain = new Blockchain(walletConfig.blockchain);
|
||||
c.storage = storage;
|
||||
|
|
@ -347,8 +348,10 @@ describe('Wallet model', function() {
|
|||
// non stored options
|
||||
o.opts.reconnectDelay = 100;
|
||||
|
||||
var s = new Storage(walletConfig.storage);
|
||||
s.setPassphrase('xxx');
|
||||
var w2 = Wallet.fromObj(o,
|
||||
new Storage(walletConfig.storage),
|
||||
s,
|
||||
new Network(walletConfig.network),
|
||||
new Blockchain(walletConfig.blockchain));
|
||||
should.exist(w2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue