chore: add excessive revision creation delay buffer in e2e

This commit is contained in:
Karol Sójko
2023-09-06 07:42:16 +02:00
parent b73402850d
commit 5d551e1463

View File

@@ -269,7 +269,7 @@ describe('history manager', () => {
const item = await Factory.createSyncedNote(application) const item = await Factory.createSyncedNote(application)
expect(item).to.be.ok expect(item).to.be.ok
await Factory.sleep(Factory.ServerRevisionCreationDelay) await Factory.sleep(2 * Factory.ServerRevisionCreationDelay)
const itemHistoryOrError = await application.listRevisions.execute({ itemUuid: item.uuid }) const itemHistoryOrError = await application.listRevisions.execute({ itemUuid: item.uuid })
expect(itemHistoryOrError.isFailed()).to.equal(false) expect(itemHistoryOrError.isFailed()).to.equal(false)
@@ -291,7 +291,7 @@ describe('history manager', () => {
syncOptions, syncOptions,
) )
await Factory.sleep(Factory.ServerRevisionCreationDelay) await Factory.sleep(2 * Factory.ServerRevisionCreationDelay)
const itemHistoryOrError = await application.listRevisions.execute({ itemUuid: item.uuid }) const itemHistoryOrError = await application.listRevisions.execute({ itemUuid: item.uuid })
expect(itemHistoryOrError.isFailed()).to.equal(false) expect(itemHistoryOrError.isFailed()).to.equal(false)