Skip to content

Commit cee8cca

Browse files
author
Danny Diekroeger
committed
updated a test that was broken
1 parent ecb11b8 commit cee8cca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,4 +466,4 @@ const run = co(function *(testArgs) {
466466
});
467467

468468
// For admin script and unit testing of functions
469-
module.exports = { run, validateKey, saveKeys, db };
469+
module.exports = { run, validateKey, saveKeys, db , requireDB };

test/admin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ describe('Offline Admin Tool', function() {
206206
path: '0'
207207
};
208208
const keyList = [key];
209+
admin.requireDB();
209210
yield admin.saveKeys(keyList, 'xpub');
210211
const foundKey = yield MasterKey.findOne({ pub: xpub });
211212
foundKey.should.have.property('signature');

0 commit comments

Comments
 (0)