File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,27 +62,27 @@ describe("Revwalk", function() {
6262 // node rather than npm, with a la `node --expose-gc [pathtohmoca] [testglob]`
6363 var testGC = ( global . gc ? it : it . skip ) ;
6464
65- testGC ( "doesnt segfault when accessing commit.author() twice" , function ( done ) {
66- this . timeout ( 10000 ) ;
67- return Repository . open ( reposPath ) . then ( function ( repository ) {
68- var walker = repository . createRevWalk ( ) ;
69- repository . getMaster ( ) . then ( function ( master ) {
70- var did = false ;
71- walker . walk ( master , function ( error , commit ) {
72- for ( var i = 0 ; i < 1000 ; i ++ ) {
73- if ( true ) {
74- commit . author ( ) . name ( ) ;
75- commit . author ( ) . email ( ) ;
65+ testGC ( "doesnt segfault when accessing .author() twice" , function ( done ) {
66+ this . timeout ( 10000 ) ;
67+ return Repository . open ( reposPath ) . then ( function ( repository ) {
68+ var walker = repository . createRevWalk ( ) ;
69+ repository . getMaster ( ) . then ( function ( master ) {
70+ var did = false ;
71+ walker . walk ( master , function ( error , commit ) {
72+ for ( var i = 0 ; i < 1000 ; i ++ ) {
73+ if ( true ) {
74+ commit . author ( ) . name ( ) ;
75+ commit . author ( ) . email ( ) ;
76+ }
77+ global . gc ( ) ;
78+ }
79+ if ( ! did ) {
80+ done ( ) ;
81+ did = true ;
7682 }
77- global . gc ( ) ;
78- }
79- if ( ! did ) {
80- done ( ) ;
81- did = true ;
82- }
83+ } ) ;
8384 } ) ;
8485 } ) ;
8586 } ) ;
86- } ) ;
8787
8888} ) ;
You can’t perform that action at this time.
0 commit comments