Skip to content

Commit

Permalink
Reduce number of HDNode tests which cause TravisCI to timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 10, 2019
1 parent a980fc3 commit a7d0b41
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/test-hdnode.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@ var assert = require('assert');
var utils = require('./utils');
var ethers = utils.getEthers(__filename);

function skip(name) {
var match = name.match(/^random-([0-9]+)$/);
if (match && parseInt(match[1]) > 512) {
return true;
}
return false;
}

describe('Test HD Node Derivation', function(test) {

var tests = utils.loadTests('hdnode');
tests.forEach(function(test) {
it('Derives the HD nodes - ' + test.name, function() {
if (skip(test.name)) { return; }
it('Derives the HD nodes - ' + test.name, function() {
this.timeout(10000);

//var rootNode = new ethers.utils.HDNode.fromSeed(test.seed);
Expand Down Expand Up @@ -87,6 +96,7 @@ describe('Test HD Node Derivation', function(test) {
describe('Test HD Mnemonic Phrases', function testMnemonic() {
var tests = utils.loadTests('hdnode');
tests.forEach(function(test) {
if (skip(test.name)) { return; }
it(('converts mnemonic phrases - ' + test.name), function() {
this.timeout(1000000);

Expand Down

0 comments on commit a7d0b41

Please sign in to comment.