Rollback to setImmediate

This commit is contained in:
orangemug 2018-09-10 14:55:45 +01:00
parent b5fc315b37
commit b314642586

View file

@ -46,9 +46,9 @@ try {
browser.addCommand('flushReactUpdates', function() { browser.addCommand('flushReactUpdates', function() {
browser.executeAsync(function(done) { browser.executeAsync(function(done) {
// For any events to propogate // For any events to propogate
process.nextTick(function() { setImmediate(function() {
// For the DOM to be updated. // For the DOM to be updated.
process.nextTick(done); setImmediate(done);
}) })
}) })
}) })