Skip to content

Commit 342d8e0

Browse files
Trottaddaleax
authored andcommitted
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: #9499 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Prince John Wesley <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent dab3e45 commit 342d8e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/inspector/inspector-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ TestSession.prototype.expectStderrOutput = function(regexp) {
259259

260260
TestSession.prototype.runNext_ = function() {
261261
if (this.task_) {
262-
setTimeout(() => {
262+
setImmediate(() => {
263263
this.task_(() => {
264264
this.task_ = this.task_.next_;
265265
this.runNext_();
@@ -338,7 +338,7 @@ Harness.prototype.addStderrFilter = function(regexp, callback) {
338338
};
339339

340340
Harness.prototype.run_ = function() {
341-
setTimeout(() => {
341+
setImmediate(() => {
342342
this.task_(() => {
343343
this.task_ = this.task_.next_;
344344
if (this.task_)

0 commit comments

Comments
 (0)