Browse Source

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>
v7.x
Rich Trott 8 years ago
committed by Anna Henningsen
parent
commit
342d8e05cb
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 4
      test/inspector/inspector-helper.js

4
test/inspector/inspector-helper.js

@ -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…
Cancel
Save