From d96148976f1e9e4bca9ba2c88b48ed2dddc99522 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Mon, 19 Feb 2024 13:04:33 +0100 Subject: [PATCH] Merge pull request #17189 from overleaf/revert-17184-msm-run-all-fake-timers Revert "[web] Run fake timers with runAll() instead of next()" GitOrigin-RevId: 878e18275e3b65cccc1441de4fe647601b5c6321 --- .../unit/src/ThirdPartyDataStore/TpdsUpdateHandlerTests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/test/unit/src/ThirdPartyDataStore/TpdsUpdateHandlerTests.js b/services/web/test/unit/src/ThirdPartyDataStore/TpdsUpdateHandlerTests.js index 6e8ec0ef32..8527e8c1ab 100644 --- a/services/web/test/unit/src/ThirdPartyDataStore/TpdsUpdateHandlerTests.js +++ b/services/web/test/unit/src/ThirdPartyDataStore/TpdsUpdateHandlerTests.js @@ -504,7 +504,7 @@ function expectProjectCreated() { it('sets the root doc', function () { // Fire pending timers - this.clock.runAll() + this.clock.next() expect( this.RootDocManager.promises.setRootDocAutomatically ).to.have.been.calledWith(this.projects.active1._id) @@ -519,7 +519,7 @@ function expectProjectNotCreated() { it('does not set the root doc', function () { // Fire pending timers - this.clock.runAll() + this.clock.next() expect(this.RootDocManager.promises.setRootDocAutomatically).not.to.have .been.called })