Fix closing deactivated accounts in tests

This commit is contained in:
Valere 2022-05-25 15:33:32 +02:00
parent 3332d827f0
commit adb5b4c1b9

View File

@ -110,7 +110,11 @@ class CommonTestHelper private constructor(context: Context) {
fun cleanUpOpenedSessions() {
trackedSessions.forEach {
runBlockingTest {
it.signOutService().signOut(true)
try {
it.signOutService().signOut(true)
} catch (failure: Throwable) {
// Well, as long as you tried.
}
}
}
trackedSessions.clear()