Fix broken unit test

This commit is contained in:
ariskotsomitopoulos 2022-05-31 13:13:24 +03:00 committed by Valere
parent 55fdff4242
commit 010cf540b6
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,8 @@
package org.matrix.android.sdk.internal.crypto
import io.realm.RealmConfiguration
import org.matrix.android.sdk.api.MatrixConfiguration
import org.matrix.android.sdk.common.TestRoomDisplayNameFallbackProvider
import org.matrix.android.sdk.internal.crypto.store.IMXCryptoStore
import org.matrix.android.sdk.internal.crypto.store.db.RealmCryptoStore
import org.matrix.android.sdk.internal.crypto.store.db.RealmCryptoStoreModule
@ -36,6 +38,10 @@ internal class CryptoStoreHelper {
crossSigningKeysMapper = CrossSigningKeysMapper(MoshiProvider.providesMoshi()),
userId = "userId_" + Random.nextInt(),
deviceId = "deviceId_sample",
matrixConfiguration = MatrixConfiguration(
applicationFlavor = "TestFlavor",
roomDisplayNameFallbackProvider = TestRoomDisplayNameFallbackProvider()
),
clock = DefaultClock(),
)
}