mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Fix closing deactivated accounts in tests
This commit is contained in:
parent
3332d827f0
commit
adb5b4c1b9
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user