File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -101,27 +101,20 @@ module.exports = function (config) {
101101 err = e ;
102102 recorder . session . restore ( `retryTo ${ tries } ` ) ;
103103 tries ++ ;
104- // recorder.session.restore(`retryTo`);
105104 if ( tries <= maxTries ) {
106105 debug ( `Error ${ err } ... Retrying` ) ;
107106 err = null ;
108107
109- recorder . add ( `retryTo ${ tries } ` , ( ) => {
110- tryBlock ( ) ;
111- // recorder.add(() => new Promise(done => setTimeout(done, pollInterval)));
112- } ) ;
108+ recorder . add ( `retryTo ${ tries } ` , ( ) => setTimeout ( tryBlock , pollInterval ) ) ;
113109 } else {
114- // recorder.throw(err);
115110 done ( null ) ;
116111 }
117112 } ) ;
118- // return recorder.promise();
119113 } ;
120114
121115 recorder . add ( 'retryTo' , async ( ) => {
122116 store . debugMode = true ;
123117 tryBlock ( ) ;
124- // recorder.add(() => recorder.session.restore(`retryTo ${tries-1}`));
125118 } ) ;
126119 } ) . then ( ( ) => {
127120 if ( err ) recorder . throw ( err ) ;
You can’t perform that action at this time.
0 commit comments