You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: feature/navigation/drawer/dropdown/src/main/kotlin/net/thunderbird/feature/navigation/drawer/dropdown/domain/usecase/GetDisplayTreeFolder.kt
@@ -220,7 +221,7 @@ class MigrationTo90Test : KoinTest {
220
221
}
221
222
222
223
@Test
223
-
fun`given an imap account - when can't fetch imap prefix during the migration - migration should not execute sql queries`() {
224
+
fun`given an imap account - when can't fetch imap prefix during the migration due to authentication error - migration should not execute sql queries`() {
224
225
// Arrange
225
226
populateDatabase()
226
227
val prefix ="INBOX."
@@ -256,6 +257,43 @@ class MigrationTo90Test : KoinTest {
256
257
}
257
258
}
258
259
260
+
@Test
261
+
fun`given an imap account - when can't fetch imap prefix during the migration due to network error - migration should not execute sql queries`() {
262
+
// Arrange
263
+
populateDatabase()
264
+
val prefix ="INBOX."
265
+
val imapStore = createImapStoreSpy(
266
+
imapPrefix = prefix,
267
+
folderPathDelimiter =".",
268
+
ioException =IOException("failed to fetch"),
269
+
)
270
+
val incomingServerSettings = createIncomingServerSettings()
271
+
val account = createAccount(incomingServerSettings)
272
+
val migrationHelper = createMigrationsHelper(account)
0 commit comments