Increase the timeout for test-child-process.fork-net2.js to improve test stability.
This commit is contained in:
parent
9eb64e6bb8
commit
0dbecd53e6
|
@ -5,7 +5,7 @@
|
|||
child2.send('close');
|
||||
child3.disconnect();
|
||||
- }, 200);
|
||||
+ }, 3000);
|
||||
+ }, 20000);
|
||||
};
|
||||
|
||||
process.on('exit', function() {
|
||||
|
@ -14,7 +14,7 @@
|
|||
assert.ok(closeEmitted);
|
||||
- assert.ok(timeElasped >= 190 && timeElasped <= 1000,
|
||||
- 'timeElasped was not between 190 and 1000 ms');
|
||||
+ assert.ok(timeElasped >= 190 && timeElasped <= 4000,
|
||||
+ 'timeElasped was not between 190 and 4000 ms');
|
||||
+ assert.ok(timeElasped >= 190 && timeElasped <= 25000,
|
||||
+ 'timeElasped was not between 190 and 25000 ms');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue