Fix ArchiveImportExport tests.

This commit is contained in:
Greyson Parrelli
2024-08-14 13:37:35 -04:00
committed by mtang-signal
parent 330cef2702
commit 110e2c9eb0
3 changed files with 26 additions and 28 deletions

View File

@@ -170,10 +170,6 @@ class ArchiveImportExportTests {
val generatedBackupData = BackupRepository.debugExport(plaintext = true, currentTime = success.backupTime)
checkEquivalent(filename, inputFileBytes, generatedBackupData)?.let { return it }
// Validator expects encrypted data, so we have to export again with encryption to validate
val encryptedBackupData = BackupRepository.debugExport(plaintext = false, currentTime = success.backupTime)
assertPassesValidator(filename, encryptedBackupData)?.let { return it }
return TestResult.Success(filename)
}