Reduce number of HDNode tests which cause TravisCI to timeout.
This commit is contained in:
parent
a980fc3db0
commit
a7d0b41d98
@ -5,10 +5,19 @@ var assert = require('assert');
|
|||||||
var utils = require('./utils');
|
var utils = require('./utils');
|
||||||
var ethers = utils.getEthers(__filename);
|
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) {
|
describe('Test HD Node Derivation', function(test) {
|
||||||
|
|
||||||
var tests = utils.loadTests('hdnode');
|
var tests = utils.loadTests('hdnode');
|
||||||
tests.forEach(function(test) {
|
tests.forEach(function(test) {
|
||||||
|
if (skip(test.name)) { return; }
|
||||||
it('Derives the HD nodes - ' + test.name, function() {
|
it('Derives the HD nodes - ' + test.name, function() {
|
||||||
this.timeout(10000);
|
this.timeout(10000);
|
||||||
|
|
||||||
@ -87,6 +96,7 @@ describe('Test HD Node Derivation', function(test) {
|
|||||||
describe('Test HD Mnemonic Phrases', function testMnemonic() {
|
describe('Test HD Mnemonic Phrases', function testMnemonic() {
|
||||||
var tests = utils.loadTests('hdnode');
|
var tests = utils.loadTests('hdnode');
|
||||||
tests.forEach(function(test) {
|
tests.forEach(function(test) {
|
||||||
|
if (skip(test.name)) { return; }
|
||||||
it(('converts mnemonic phrases - ' + test.name), function() {
|
it(('converts mnemonic phrases - ' + test.name), function() {
|
||||||
this.timeout(1000000);
|
this.timeout(1000000);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user