You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constterminateTimeout=1000// set terminateTimeout to 1000 ms
288
-
varcommand=this.getCommand({
289
-
source: this.testfilebig,
290
-
logger: testhelper.logger,
291
-
terminateTimeout: terminateTimeout
292
-
});
293
-
294
-
varstartCalled=false;
295
-
varoutputStreamClosed=false;
296
-
297
-
// Mock output stream
298
-
varoutputStream=newstream.PassThrough();
299
-
outputStream.close=function(){
300
-
outputStreamClosed=true;
301
-
this.emit('close');
302
-
};
303
-
304
-
command
305
-
.usingPreset('divx')
306
-
.output(outputStream)
307
-
.on('start',function(){
308
-
startCalled=true;
309
-
setTimeout(function(){outputStream.close();},500);// close the output stream after 500ms (emit 'close' event on output stream before 'exit' event, to simulate a under load system)
0 commit comments