Skip to content

Commit 0f18cdb

Browse files
authored
Merge pull request #8512 from vector-im/feature/bca/fix_deactivation_test
Deactivation test broken by latest synapse
2 parents 07e0695 + 6b2331d commit 0f18cdb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/account/DeactivateAccountTest.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,15 @@ class DeactivateAccountTest : InstrumentedTest {
6464

6565
// Test the error
6666
assertTrue(
67+
"Unexpected deactivated error $throwable",
6768
throwable is Failure.ServerError &&
68-
throwable.error.code == MatrixError.M_USER_DEACTIVATED &&
69-
throwable.error.message == "This account has been deactivated"
69+
(
70+
(throwable.error.code == MatrixError.M_USER_DEACTIVATED &&
71+
throwable.error.message == "This account has been deactivated") ||
72+
// Workaround for a breaking change on synapse to fix CI
73+
// https://github.com/matrix-org/synapse/issues/15747
74+
throwable.error.code == MatrixError.M_FORBIDDEN
75+
)
7076
)
7177

7278
// Try to create an account with the deactivate account user id, it will fail (M_USER_IN_USE)

0 commit comments

Comments
 (0)