mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 18:36:21 +03:00
Fix failing test
This commit is contained in:
parent
2077d972bc
commit
ee1580c50e
1 changed files with 4 additions and 2 deletions
|
@ -49,7 +49,7 @@ class PreShareKeysTest : InstrumentedTest {
|
|||
val preShareCount = bobSession.cryptoService().keysBackupService().getTotalNumbersOfKeys()
|
||||
|
||||
assertEquals("Bob should not have receive any key from alice at this point", 0, preShareCount)
|
||||
Log.d("#Test", "Room Key Received from alice $preShareCount")
|
||||
Log.d("#E2E", "Room Key Received from alice $preShareCount")
|
||||
|
||||
// Force presharing of new outbound key
|
||||
aliceSession.cryptoService().prepareToEncrypt(e2eRoomID)
|
||||
|
@ -78,7 +78,9 @@ class PreShareKeysTest : InstrumentedTest {
|
|||
assertEquals("The session received by bob should match what alice sent", 0, sharedIndex)
|
||||
|
||||
// Just send a real message as test
|
||||
val sentEvent = testHelper.sendTextMessage(aliceSession.getRoom(e2eRoomID)!!, "Allo", 1).first()
|
||||
val sentEventId = testHelper.sendMessageInRoom(aliceSession.getRoom(e2eRoomID)!!, "Allo")
|
||||
|
||||
val sentEvent = aliceSession.getRoom(e2eRoomID)!!.getTimelineEvent(sentEventId)!!
|
||||
|
||||
assertEquals("Unexpected megolm session", megolmSessionId, sentEvent.root.content.toModel<EncryptedEventContent>()?.sessionId)
|
||||
testHelper.retryPeriodically {
|
||||
|
|
Loading…
Reference in a new issue