Skip to content

Commit

Permalink
Fix crypto tests by setting a different crypto config in the MatrixCo…
Browse files Browse the repository at this point in the history
…nfiguration of the test environment
  • Loading branch information
Florian Renaud committed Aug 25, 2022
1 parent d1fc1bf commit 0fd0f67
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import org.matrix.android.sdk.api.MatrixCallback
import org.matrix.android.sdk.api.MatrixConfiguration
import org.matrix.android.sdk.api.auth.data.HomeServerConnectionConfig
import org.matrix.android.sdk.api.auth.registration.RegistrationResult
import org.matrix.android.sdk.api.crypto.MXCryptoConfig
import org.matrix.android.sdk.api.session.Session
import org.matrix.android.sdk.api.session.events.model.EventType
import org.matrix.android.sdk.api.session.events.model.toModel
Expand Down Expand Up @@ -103,7 +104,9 @@ class CommonTestHelper internal constructor(context: Context) {
context,
MatrixConfiguration(
applicationFlavor = "TestFlavor",
roomDisplayNameFallbackProvider = TestRoomDisplayNameFallbackProvider()
roomDisplayNameFallbackProvider = TestRoomDisplayNameFallbackProvider(),
// Tchap: Do not limit here key requests to my devices to unblock crypto tests
cryptoConfig = MXCryptoConfig(limitRoomKeyRequestsToMyDevices = false),
)
)
}
Expand Down

0 comments on commit 0fd0f67

Please sign in to comment.