From b5fc315b3735f805cb2e590becc6339d2ae9ef04 Mon Sep 17 00:00:00 2001 From: orangemug Date: Mon, 10 Sep 2018 14:51:22 +0100 Subject: [PATCH] setImmediate -> process.nextTick --- test/functional/util/webdriverio-ext.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/util/webdriverio-ext.js b/test/functional/util/webdriverio-ext.js index ee35b486..866b7750 100644 --- a/test/functional/util/webdriverio-ext.js +++ b/test/functional/util/webdriverio-ext.js @@ -46,9 +46,9 @@ try { browser.addCommand('flushReactUpdates', function() { browser.executeAsync(function(done) { // For any events to propogate - setImmediate(function() { + process.nextTick(function() { // For the DOM to be updated. - setImmediate(done); + process.nextTick(done); }) }) })