Skip to content

Commit

Permalink
Fix chunking for mailbox export
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag committed Dec 5, 2024
1 parent 1423217 commit 54f346e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions test/tests/api/worker/search/MailIndexerTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ import { InfoMessageHandler } from "../../../../../src/common/gui/InfoMessageHan
import { ElementDataOS, GroupDataOS, Metadata as MetaData, MetaDataOS } from "../../../../../src/common/api/worker/search/IndexTables.js"
import { MailFacade } from "../../../../../src/common/api/worker/facades/lazy/MailFacade.js"
import { typeModels } from "../../../../../src/common/api/entities/tutanota/TypeModels.js"
import { BulkMailLoader } from "../../../../../src/mail-app/common/BulkMailLoader.js"
import { EntityClient } from "../../../../../src/common/api/common/EntityClient.js"
import { BulkMailLoader } from "../../../../../src/mail-app/workerUtils/index/BulkMailLoader.js"

class FixedDateProvider implements DateProvider {
now: number
Expand Down Expand Up @@ -192,8 +192,6 @@ o.spec("MailIndexer test", () => {
}
})
const MailModel = await resolveTypeReference(MailTypeRef)
const DetailsMailModel = await resolveTypeReference(MailDetailsTypeRef)
const RecipientModel = await resolveTypeReference(RecipientsTypeRef)
o(JSON.stringify(attributes)).equals(
JSON.stringify([
{
Expand Down
2 changes: 1 addition & 1 deletion test/tests/native/main/MailExportControllerTest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import o from "@tutao/otest"
import { MailExportController } from "../../../../src/mail-app/native/main/MailExportController.js"
import { BulkMailLoader } from "../../../../src/mail-app/common/BulkMailLoader.js"
import { matchers, object, verify, when } from "testdouble"
import { HtmlSanitizer } from "../../../../src/common/misc/HtmlSanitizer.js"
import { ExportFacade } from "../../../../src/common/native/common/generatedipc/ExportFacade.js"
Expand All @@ -27,6 +26,7 @@ import { assertNotNull } from "@tutao/tutanota-utils"
import { createDataFile } from "../../../../src/common/api/common/DataFile.js"
import { makeMailBundle } from "../../../../src/mail-app/mail/export/Bundler.js"
import { MailboxExportState } from "../../../../src/common/desktop/export/MailboxExportPersistence.js"
import { BulkMailLoader } from "../../../../src/mail-app/workerUtils/index/BulkMailLoader.js"

o.spec("MailExportController", function () {
const userId = "userId"
Expand Down

0 comments on commit 54f346e

Please sign in to comment.