Merge pull request #24224 from overleaf/em-resync-on-flush-failure

Immediately attempt a resync when a history flush fails

GitOrigin-RevId: 098a0a7edf55c0ed47c48e0a3c080e3562cdceaa
This commit is contained in:
Eric Mc Sween
2025-03-18 09:05:36 +00:00
committed by Copybot
parent c5b584e3d8
commit 35dc7faab6
10 changed files with 369 additions and 235 deletions
@@ -40,7 +40,7 @@ describe('HttpController', function () {
clearCachedHistoryId: sinon.stub().yields(),
}
this.ErrorRecorder = {
record: sinon.stub().yields(),
clearError: sinon.stub().yields(),
}
this.LabelsManager = {
createLabel: sinon.stub(),
@@ -567,11 +567,7 @@ describe('HttpController', function () {
})
it('should clear any failure record', function () {
this.ErrorRecorder.record.should.have.been.calledWith(
this.projectId,
0,
null
)
this.ErrorRecorder.clearError.should.have.been.calledWith(this.projectId)
})
})
})