test: refactor inspector-helper.js
There are two instances of `setTimeout()` called without a duration in `inspector-helper.js`. Change to `setImmediate()` for clarity that it isn't a mistake. PR-URL: https://github.com/nodejs/node/pull/9499 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
837e822992
commit
103858e95f
@ -259,7 +259,7 @@ TestSession.prototype.expectStderrOutput = function(regexp) {
|
||||
|
||||
TestSession.prototype.runNext_ = function() {
|
||||
if (this.task_) {
|
||||
setTimeout(() => {
|
||||
setImmediate(() => {
|
||||
this.task_(() => {
|
||||
this.task_ = this.task_.next_;
|
||||
this.runNext_();
|
||||
@ -338,7 +338,7 @@ Harness.prototype.addStderrFilter = function(regexp, callback) {
|
||||
};
|
||||
|
||||
Harness.prototype.run_ = function() {
|
||||
setTimeout(() => {
|
||||
setImmediate(() => {
|
||||
this.task_(() => {
|
||||
this.task_ = this.task_.next_;
|
||||
if (this.task_)
|
||||
|
Loading…
x
Reference in New Issue
Block a user