Просмотр исходного кода

Merge pull request #13124 from overleaf/jk-disable-flaky-test-again

[web] disable flaky test with `fake-timers`, again

GitOrigin-RevId: e53afd52058666b14c55fbe91bc1ea7b55a87c1a
June Kelly 3 лет назад
Родитель
Сommit
9d86affec4

+ 10 - 2
services/web/test/unit/src/ThirdPartyDataStore/TpdsUpdateHandlerTests.js

@@ -502,7 +502,11 @@ function expectProjectCreated() {
     ).to.have.been.calledWith(this.userId, this.projectName)
   })
 
-  it('sets the root doc', function () {
+  /**
+   * Temporarily disable flaky test
+   */
+  // eslint-disable-next-line mocha/no-skipped-tests
+  it.skip('sets the root doc', function () {
     // Fire pending timers
     this.clock.runAll()
     expect(
@@ -517,7 +521,11 @@ function expectProjectNotCreated() {
       .been.called
   })
 
-  it('does not set the root doc', function () {
+  /**
+   * Temporarily disable flaky test
+   */
+  // eslint-disable-next-line mocha/no-skipped-tests
+  it.skip('does not set the root doc', function () {
     // Fire pending timers
     this.clock.runAll()
     expect(this.RootDocManager.promises.setRootDocAutomatically).not.to.have