File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,20 @@ var assert = require('assert');
5
5
var utils = require ( './utils' ) ;
6
6
var ethers = utils . getEthers ( __filename ) ;
7
7
8
+ function skip ( name ) {
9
+ var match = name . match ( / ^ r a n d o m - ( [ 0 - 9 ] + ) $ / ) ;
10
+ if ( match && parseInt ( match [ 1 ] ) > 512 ) {
11
+ return true ;
12
+ }
13
+ return false ;
14
+ }
15
+
8
16
describe ( 'Test HD Node Derivation' , function ( test ) {
9
17
10
18
var tests = utils . loadTests ( 'hdnode' ) ;
11
19
tests . forEach ( function ( test ) {
12
- it ( 'Derives the HD nodes - ' + test . name , function ( ) {
20
+ if ( skip ( test . name ) ) { return ; }
21
+ it ( 'Derives the HD nodes - ' + test . name , function ( ) {
13
22
this . timeout ( 10000 ) ;
14
23
15
24
//var rootNode = new ethers.utils.HDNode.fromSeed(test.seed);
@@ -87,6 +96,7 @@ describe('Test HD Node Derivation', function(test) {
87
96
describe ( 'Test HD Mnemonic Phrases' , function testMnemonic ( ) {
88
97
var tests = utils . loadTests ( 'hdnode' ) ;
89
98
tests . forEach ( function ( test ) {
99
+ if ( skip ( test . name ) ) { return ; }
90
100
it ( ( 'converts mnemonic phrases - ' + test . name ) , function ( ) {
91
101
this . timeout ( 1000000 ) ;
92
102
You can’t perform that action at this time.
0 commit comments