From ba96c8dec13cc8c126436a89ba085fbaa7e2f2b7 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Wed, 31 Oct 2018 20:42:17 +0000 Subject: [PATCH] TST --- HDWallet.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/HDWallet.test.js b/HDWallet.test.js index cad1002e..092fba4c 100644 --- a/HDWallet.test.js +++ b/HDWallet.test.js @@ -201,9 +201,13 @@ it('Legacy HD (BIP44) can generate addressess based on xpub', async function() { }); it('HD breadwallet works', async function() { + if (!process.env.HD_MNEMONIC_BREAD) { + console.error('process.env.HD_MNEMONIC_BREAD not set, skipped'); + return; + } jasmine.DEFAULT_TIMEOUT_INTERVAL = 300 * 1000; let hdBread = new HDLegacyBreadwalletWallet(); - hdBread.setSecret('high relief amount witness try remember adult destroy puppy fox giant peace'); + hdBread.setSecret(process.env.HD_MNEMONIC_BREAD); assert.equal(hdBread.validateMnemonic(), true); assert.equal(hdBread._getExternalAddressByIndex(0), '1ARGkNMdsBE36fJhddSwf8PqBXG3s4d2KU');