File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/account Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,15 @@ class DeactivateAccountTest : InstrumentedTest {
64
64
65
65
// Test the error
66
66
assertTrue(
67
+ " Unexpected deactivated error $throwable " ,
67
68
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
+ )
70
76
)
71
77
72
78
// Try to create an account with the deactivate account user id, it will fail (M_USER_IN_USE)
You can’t perform that action at this time.
0 commit comments